Editable line on the stage

I need to have a freely editable line on the Stage. How it is possible to have an editable text, it would be ideal to have a Vector Shape in editable form.
I also need of another hint. I need to write on the stage a points with the mouse and then, in a second time, with a script inside in a mouseUp for exemple, join all the points with a curved or straight line (Vector Shape would be better).
I guess it is not possible to give an indication with a few words, but what approach I must follow?
Thanks.

I created a demo movie (41 MB) for the new 5.1 sound features in Director 11.5. This contains a set of scripts to edit the shape of a Bézier curve on the Stage. The feature is a little bit hidden, because it was part of an activity that was not completed in time for GDC 2009. You'll have to manually jump to the "Sculpting" marker, to find it.
Is this the sort of thing that you are looking for?

Similar Messages

  • Can't edit objects on the stage

    Hi,
    I'm stumped helping my colleague on the issue below so I'm logging this question.
    Issue: My colleague is trying to edit a slide but can't edit any of the objects on the stage. However, it works fine when I open the same project on my machine. Is there a setting on her machine that's causing the issue?
    In the screenshot below, check out Slide 2 (selected) notice how:
    in the thumbnail there are multiple objects (white image on the left, blue text caption in the center) on the slide.
    in the timeline multiple objects are available and selectable. All are set to be visible (the little "eye" isn't switched to off).
    when you look at the stage, the only things that we see are the background and a single button.
    The objects also appear fine in Preview.
    On the stage, can "phatomly" select objects, but she can't change the characteristics of them (e.g., change text in a text caption, resize object, move object).
    Screenshot:
    OS: Windows 7
    Captivate: v5.5 (running as Administrator)
    Background info:
    This project was initially created in an older Captivate version (4.0 or 5.0) and is now being edited/updated.
    Last week, my colleague was trying to edit the same project (using v5.0). When she clicked play on the timeline, her audio wouldn't play. When she watched the Preview or tried to edit the audio, the audio would play just fine. Also, on my machine (running v5.5) it worked fine. This prompted me to suggest that she update to v5.5. Alas, it seems this fixed the audio issue, only to create this video issue.
    Thanks,
    - Dino

    Here's a bigger/better quality image. I hope it helps.
    Notice how the Text Caption is selected in the timeline and it's properties are visible on the right. Yet the item itself is nowhere to be seen on the stage. Also, now it seems to have disappeared from the thumbnail.

  • I can't edit a Line with the Properties panel - Flash CS4

    I have created a line on the stage with the Line tool, and then want to edit the Stroke and Style in the Properties panel. However, after creating the line these options are greyed out and not available to me. Even if I then select the Line with the Selection tool, I cannot edit the Stroke or the Style. It seems to me I should be able to do this, what am I missing?

    Normally after drawing the line you only need to click once on it to select it, and with it selected you should be able to access its settings in the properties panel.

  • Editable Volume Line in The waveform

    I am totally new to Sound Booth and I can't find the answer to this in any tutorials or manuals:  How do you implement the volume or levels as an editable line within the waveform.  A line where you can add key points and move them up and down and even make them Bezier curves so that volume levels changes can be edited in a non linear fashion if desired?
    Secons: I imported a score form the included library and when dragged to the editing window, there in no wave form.  How do I make it apear with the waveform?
    Any help and input is appreciated

    Make sure the volume on the iPod is turned up fully, since this will affect what you hear through the stereo.
    Make sure Volume Limit is set to full. (From Main Menu, Settings/Volume Limit)
    If you purchased your iPod inside the EU (European Union), then the maximum volume from the headphone jack is lower than elsewhere in the world. If this is the case, buy yourself a 30-pin Dock Connector to 3.5mm jack lead, such as the one linked here...
    http://www.amazon.co.uk/Decrescent-Connector-Stereo-Auxiliary-iPhone/dp/B007NIE5 EE/ref=sr_1_1?ie=UTF8&qid=1386012456&sr=8-1&keywords=30+pin+to+3.5mm
    That connector will take a higher volume out (than the European Union's output) and that will be louder (and hopefully loud enough) through your stereo.

  • How do I move all clips from an event into the edit line...

    If I have an event of tons of clips that comprise an hour of footage, how can I select all of those clips at once from the event library and transfer them to the edit line above?
    There is no Select All feature, that I can see, and it takes forever to highlight each chunk of clips, one at a time, and drag them up.
    I'd like to drag the whole 1 hour's worth of clips in one event in my library up to the edit line at once.
    Thanks!

    Hi Rich,
    I am trying to somehow "select all" clips, (not just all shots within a clip), but all 100 or so slips from an entire tape, from the first clip, to the last clip, and everything in between, and move them all up to the edit pane at once.
    As it is now, I have to click on a thumbnail, select the entire clip, and move one clip at a time up to the edit pane.
    I want to move all the clips up at once.

  • Command Lines in the User Edition, Discovere 4i

    Dear All,
    I am searching for an answer regarding the chance to use the batch command line in the Discoverer 4i user edition to export an xls file with the pivot format.
    It is not possible to do this in the previous version, but it's possible in the 4i version choosing the xls pivot format while exporting the report interactively.
    So we are looking for a specific parameter to be used in the command line.
    Thank you for your help,
    Carola Buora

    Hi Carola,
    May I suggest reposting this question to the Dicoverer forum
    http://forums.oracle.com/forums/forum.jsp?id=422740
    Your chances for getting the right set of answers are probably much better there. Hope this helps.
    Cheers,
    -lars

  • Editing the thumb-line in the photopage

    When you open a photo-page, you first get the thumbs. Then clicking on a thumb you continue to a page where uyou see the picture in larger size, and the other pictures as thumbs in a line over. Is it any way to edit this? I would like to be able to move the thumbline down , and maby make them smaler. Is this possible?
    Can I move the different buttons around the page as well? ('next', 'previous', 'play slideshow' and 'back to album')
    I also would like to move the links ('play slideshow', ' back to album', ',next' and 'previous'). Can I do that?
    Can I remove the 'back to album'-button on the thumb-line-page (the page you get to when clicking on a thumb at the photopage, getting a bigger photo with a thumb-line over)?
    It would be great if you could go directly to the so called thumb-line-page and skip the first thumbnail page. Is this possible?
    Message was edited by: pereide

    I just add the whole post again, edited it and stuff it might be diffrent from when you read it. You might have seen it all and answered it, but. I'll give it a go.
    When you open a photo-page, you first get the thumbs. Then clicking on a thumb you continue to a page where uyou see the picture in larger size, and the other pictures as thumbs in a line over. Is it any way to edit this? I would like to be able to move the thumbline down , and maby make them smaler. Is this possible?
    Can I move the different buttons around the page as well? ('next', 'previous', 'play slideshow' and 'back to album')
    I also would like to move the links ('play slideshow', ' back to album', ',next' and 'previous'). Can I do that?
    Can I remove the 'back to album'-button on the thumb-line-page (the page you get to when clicking on a thumb at the photopage, getting a bigger photo with a thumb-line over)?
    It would be great if you could go directly to the so called thumb-line-page and skip the first thumbnail page. Is this possible?

  • I can see no information for uploading my edited tape to a DV Video Camera in line with the process include in V3 of Elements

    In V12 of Elements I can see no process for uploading my edited work to the tape in my DV Panasonic Video Camera (NV GS500- 10 years old). This was possible in V3. In V12 numerous video standards are quoted for various destinations but nothing for DV Camera tap drive. Has this facility been removed in favour of more modern social media destinations etc?

    OK Many thanks for your help. I am getting closer to my goal. I think I have another problem in that the PC does not recognise my DV connection to the Camera. In line with the process for V3 I have just purchased a Firewire to USB3 conversion cable which my supplier suggests removes the need for a physical 1394 port as the PC detects what is connected  to the USB3 port but WIN DV says "no device connected " Also the PC does not give the usual sound when devices are connected. My old PC had a physical 1394 port which I successfully used to download my edited work to the camera via the DV camera port. If you have any advice re the validity of the statement that the conversion cable is sufficient to download to the DV port on the camera I would appreciate it
    Regards

  • When editing in iMovie the pointer doesn't  jumps to the next line of clips

    When editing in iMovie the pointer doesn't  jumps to the next line of clips

    Hi,
    This should not happen.
    Having said that it will happen to some extent of you Paste in a larger amount of text.
    Does holding down the ALT key and hitting Enter/return a couple of times expand the window ?
    This normally adds Line Breaks to the Text Field
    If this does not work it will point to a windowing issue which is related to data held in com.apple.ichat.plist
    Go to the Finder and it's Go Menu.
    In here hold the ALT key so you can see the Home Library item and select that
    Open Preferences.
    Find the com.apple.iChat.plist and the associated .lockfile and drag both to the Trash.
    Restart iChat.
    8:15 PM      Tuesday; November 22, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • PowerPoint 2010 arrows in series lines was displayed reversely between the edit mode and the slide show

    I encounter a strange problem with the column chart in PowerPoint 2010 (or maybe the combinations of Excel 2010 and PowerPoint 2010).  The directions of the arrows in Series Lines display in the reverse direction between the edit mode and the Slide
    Show.
    Here are the steps to recreate this phenomenon:
    Open a new Presentation > Insert > Chart > Column > Stacked Column > Press OK
    Excel pops up.  Close Excel and return to PowerPoint.
    Click on the chart > Layout > Lines > Select "Series Lines"
    Right click on the lines and select "Format Series Lines"
    Line Style > End Type > Choose "Stealth Arrow"
    (well, could not paste an image yet... arrows display like <--)
    When F5 was pressed (Slide Show)
    (well, could not paste an image yet...  arrows display like -->)
    If you look closely at the directions of the arrows, they are display in the reverse directions.  Anyone is having the same issue?
    Thanks!
    Chen

    Hi,
    Based on my tested both of the PowerPoint 2010 and
    PowerPoint 2013, I reproduced the issue in my environment.
    If I choose the End Type> Stealth Arrow(---->), it showed "<-----" in "Normal mode", but showed the "---->" in  "Slide Show mode". It seems display correctly in "Slide Show mode". 
    We have definitely heard your frustration, and we're thinking about ways to make this scenario work better for our customers. Please wait for the issue is fixed. Thanks.
    Regards,
    George Zhao
    TechNet Community Support

  • I keep losing the line at the top of the page which includes "file,edit veiw,bookmarks,history,help etc" I can get it back by pressing lt+F8 but it goes again when i press another key.how can I restore this permanently

    I have lsot the line in the toolbar spaces which include "file,edie,veiw,bookmarks,history,help"etc.Ican get it back by pressing Alt+F8 but it goes when I press any other key.How can I restore this permanently

    Thanks for the information, is this a windows 7 problem?

  • In Captivate, how to effectively control the movement of objects on the stage?

    How to, say, make a shape (an arrow, for example) which points to a certain location move (and maybe rotate at the same time) to another location (another point on the stage) one second later. I know I can "apply effect" to it, but still I don't find it very easy to control the start position and end position of the arrow and the way it rotates (for example, how to make it rotate along the X, Y and Z axis respectively?)
    Or, how can I make an image fly into the stage to a specific location from a certain direction, linger for a specific time, and then fly out in a specified direction? And while setting up this animation, is it possible to scrub across the timeline to see the effect of the animation, as you do in Flash Professional?

    An old pain, efficient control of motion paths and motion effects, I know.
    All motion effects are relative to the start position of the object, that can allow you to realize the fly in and fly out: time both effects and leave the necessary 'linger' time between the effects. The motion paths can be edited. To have more precise coordinates you can either edit the XML that describes the effect, or create a motion effect in Flash Professional and save it as XML to be used in Captivate, or use my approach: I create a crosshair group with a perfect vertical and horizontal line object, that you can position exactly using the X and Y coordinates and then drag start or end point of the motion path over that cross hair. I have been pleading to have at least a snap function or a serious improvement that allows to enter coordinates but apparently not many users are wanting this improvement. I used that approach here in the first movie: Reset Effects in Captivate 6 - Captivate blog
    And no, Preview slide (which is what you do when scrubbing the timeline) is not a real preview, you cannot see those effects.
    Please, next time mention the version you are using. In CP7 and before effect duration was relative to object duration, in CP8 it is (finally) absolute timing.

  • Trying to create a movie clip that Bounces off four sides of the stage

    using the syntax below I have created a movie clip called 'BALL' that bounces off from the left "x"  and moves to the right side of the stage 'x.520' and bounces back to the start "x".
    HOW DO I CREATE A MOVIE CLIP THAT BOUNCES FOUR SIDES OF THE STAGE AND STOPS ON THE FOURTH BOUNCE??
    var ballTween:Tween = new Tween(ball, "x", Bounce.easeInOut, ball.x,520, 5, true);
    ballTween.addEventListener(TweenEvent.MOTION_FINISH,tweenFinishedF);
    function tweenFinishedF(e:TweenEvent):void{
    new Tween(ball,"x",Bounce.easeOut,ball.x,0,5,true);

    Here is a simplest way to do that. This code doesn't use your ball but draws it dynamically. If you want to use your ball instance - replace relevant lines.
    import flash.display.Shape;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.geom.Rectangle;
    var ball:Shape;
    // speed, naturally
    var speed:Number = 7;
    // velocity along x
    var vx:Number = speed;
    // vlocity along y
    var vy:Number = speed;
    // area within which ball may move
    var moveArea:Rectangle;
    // radius of ball circle shape
    var ballRadius:Number = 20;
    init();
    function init():void
        moveArea = new Rectangle(ballRadius, ballRadius, stage.stageWidth - ballRadius, stage.stageHeight - ballRadius);
        drawBall();
        addEventListener(Event.ENTER_FRAME, moveBall);
    function moveBall(e:Event):void
        // change direction if ball moves out of allowed rectangle
        if (ball.x < moveArea.x)
            vx = speed;
        else if (ball.x > moveArea.width)
            vx = -speed;
        if (ball.y < moveArea.y)
            vy = speed;
        else if (ball.y > moveArea.height)
            vy = -speed;
        ball.x += vx;
        ball.y += vy;
    function drawBall():void
        ball = new Shape();
        ball.graphics.beginFill(0xFF0000);
        ball.graphics.drawCircle(0, 0, ballRadius);
        ball.x = moveArea.x + Math.random() * moveArea.width;
        ball.y = moveArea.y + Math.random() * moveArea.height;
        addChild(ball);
    Message was edited by: Andrei1

  • How to remove characters/lines from the beginning of an InputStream

    Hi,
    I have a program which receives several InputStreams. From each of these streams I have to remove 2 lines from the beginning. After the lines are removed, all the streams are combined to one with SequenceInputStream and read in one chunk. Is there an easy/simple way of doing this?
    One option I thought would be to read the char by char until 2 end of line chars have been detected and then read the rest of the data to a buffer. And the create a ByteArrayInputStream out of this buffer. Problem with this approach is, that the amount of data can be large, so putting all the data in to memory might cause problems.
    Another option is to use BufferredInputStream and use the readline() method twice to get rid of the lines that are not needed. After this I would write the data to some output stream, which is then converted back to input stream. Propably would work, but sound too much of work for a simple thing like this. There has to be better way.
    To make it simple, what I need is a method that looks like the following, or something similar
    *  Removes n number of lines from the beginning of a InputStream.
    *  @param is InputStream where the lines are removed
    *  @param numberOfLines int value to indicate how many lines whould be removed
    *  @return InputStream where lines have been removed.
    public InputStream removeLines(InputStream is, numberOfLines);Thanks.

    Here's the code, feel free to use it. Comments are also welcome.
    public InputStream removeLinesFromTheBeginning(InputStream is, int numberOfLines) throws IOException
              char c = 'c';
              int i = 0;
              for(int n = 0 ; n < numberOfLines ; n++)
                   do
                        c = (char)is.read();
                        System.out.print(c);
                        if(c == (char)-1)     // end of stream reached before any newline characters were found.
                             return null;
                        i++;
                   while(c != '\n');
                   System.out.println();
                   System.out.println("Characters removed:" + i);
                   System.out.println("n: " + n);
                   i = 0;
              return is;
         }Edited by: dave_spaghetti on Jun 16, 2009 5:42 AM
    Fixed a bug.

  • How to get the multiple  lines on the header part in ALV

    HI all,
    In my program i am using the ALV- Grid functionality through methods. I have 2 different layouts in the same screen , for this i have 2 containers and i am displaying the title through the gird title now i need to add the few more lines under the title .
    Please suggest me, how can i proceede now.
    Thanks
    Giridhar

    Hi,
    check this sample code, i did it using splitter container. check it, it is weel documented to know what are required ....
    REPORT  ZTEST_ALV_TOP    MESSAGE-ID ZZ                           .
    DATA: G_GRID TYPE REF TO CL_GUI_ALV_GRID.
    DATA: L_VALID TYPE C,
          V_FLAG,
          V_DATA_CHANGE,
          V_ROW TYPE LVC_S_ROW,
          V_COLUMN TYPE LVC_S_COL,
          V_ROW_NUM TYPE LVC_S_ROID.
    DATA: IT_ROW_NO TYPE LVC_T_ROID,
          X_ROW_NO TYPE LVC_S_ROID.
    DATA:BEGIN OF  ITAB OCCURS 0,
         VBELN LIKE LIKP-VBELN,
         POSNR LIKE LIPS-POSNR,
         CELLCOLOR TYPE LVC_T_SCOL, "required for color
         DROP(10),
         END OF ITAB.
    "The Below Definitions Must.....
    DATA:
    * Reference to document
           DG_DYNDOC_ID       TYPE REF TO CL_DD_DOCUMENT,
    * Reference to split container
           DG_SPLITTER          TYPE REF TO CL_GUI_SPLITTER_CONTAINER,
    * Reference to grid container
           DG_PARENT_GRID     TYPE REF TO CL_GUI_CONTAINER,
    * Reference to html container
           DG_HTML_CNTRL        TYPE REF TO CL_GUI_HTML_VIEWER,
    * Reference to html container
           DG_PARENT_HTML     TYPE REF TO CL_GUI_CONTAINER.
    "up to here
    *       CLASS lcl_event_handler DEFINITION
    CLASS LCL_EVENT_HANDLER DEFINITION .
      PUBLIC SECTION .
        METHODS:
    **Hot spot Handler
        HANDLE_HOTSPOT_CLICK FOR EVENT HOTSPOT_CLICK OF CL_GUI_ALV_GRID
                          IMPORTING E_ROW_ID E_COLUMN_ID ES_ROW_NO,
    **Double Click Handler
        HANDLE_DOUBLE_CLICK FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID
                                         IMPORTING E_ROW E_COLUMN ES_ROW_NO,
        TOP_OF_PAGE FOR EVENT TOP_OF_PAGE              "event handler
                             OF CL_GUI_ALV_GRID
                             IMPORTING E_DYNDOC_ID.
    *        END_OF_LIST FOR EVENT end_of_list              "event handler
    *                         OF CL_GUI_ALV_GRID
    *                         IMPORTING E_DYNDOC_ID.
    ENDCLASS.                    "lcl_event_handler DEFINITION
    *       CLASS lcl_event_handler IMPLEMENTATION
    CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
    *Handle Hotspot Click
      METHOD HANDLE_HOTSPOT_CLICK .
        CLEAR: V_ROW,V_COLUMN,V_ROW_NUM.
        V_ROW  = E_ROW_ID.
        V_COLUMN = E_COLUMN_ID.
        V_ROW_NUM = ES_ROW_NO.
    *    MESSAGE I000 WITH V_ROW 'clicked'.
        CLEAR IT_ROW_NO[].
        X_ROW_NO-ROW_ID = V_ROW.
        APPEND X_ROW_NO TO IT_ROW_NO .
        CALL METHOD G_GRID->SET_SELECTED_ROWS
          EXPORTING
            IT_ROW_NO = IT_ROW_NO.
      ENDMETHOD.                    "lcl_event_handler
    *Handle Double Click
      METHOD  HANDLE_DOUBLE_CLICK.
        CLEAR: V_ROW,V_COLUMN,V_ROW_NUM.
        V_ROW  = E_ROW.
        V_COLUMN = E_COLUMN.
        V_ROW_NUM = ES_ROW_NO.
        IF E_COLUMN = 'VBELN'.
          SET PARAMETER ID 'VL' FIELD ITAB-VBELN.
          CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.
        ENDIF.
        IF E_COLUMN = 'POSNR'.
          SET PARAMETER ID 'VL' FIELD ITAB-VBELN.
          CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN."
        ENDIF.
      ENDMETHOD.                    "handle_double_click
    *  METHOD END_OF_LIST.                   "implementation
    ** Top-of-page event
    *    PERFORM EVENT_TOP_OF_PAGE USING DG_DYNDOC_ID.
    *  ENDMETHOD.                            "top_of_page
        METHOD TOP_OF_PAGE.                   "implementation
    * Top-of-page event
        PERFORM EVENT_TOP_OF_PAGE USING DG_DYNDOC_ID.
      ENDMETHOD.                            "top_of_page
    ENDCLASS.                    "LCL_EVENT_HANDLER IMPLEMENTATION
    *&             Global Definitions
    DATA:      G_CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,"Container1
                G_HANDLER TYPE REF TO LCL_EVENT_HANDLER. "handler
    DATA: OK_CODE LIKE SY-UCOMM,
          SAVE_OK LIKE SY-UCOMM,
          G_CONTAINER1 TYPE SCRFNAME VALUE 'TEST',
          GS_LAYOUT TYPE LVC_S_LAYO.
    data: v_lines type i.
    data: v_line(3) type c.
    *- Fieldcatalog for First and second Report
    DATA: IT_FIELDCAT  TYPE  LVC_T_FCAT,
          X_FIELDCAT TYPE LVC_S_FCAT,
          LS_VARI  TYPE DISVARIANT.
    *                START-OF_SELECTION
    START-OF-SELECTION.
      SELECT VBELN
             POSNR
             FROM LIPS
             UP TO 20 ROWS
             INTO CORRESPONDING FIELDS OF TABLE ITAB.
    describe table itab lines v_lines.
    END-OF-SELECTION.
      IF NOT ITAB[] IS INITIAL.
        CALL SCREEN 100.
      ELSE.
        MESSAGE I002 WITH 'NO DATA FOR THE SELECTION'(004).
      ENDIF.
    *&      Form  CREATE_AND_INIT_ALV
    *       text
    FORM CREATE_AND_INIT_ALV .
      DATA: LT_EXCLUDE TYPE UI_FUNCTIONS.
      "attention.....from here
      "split your container here...into two parts
      "create the container
      CREATE OBJECT G_CUSTOM_CONTAINER
               EXPORTING CONTAINER_NAME = G_CONTAINER1.
      "this is for top of page
    * Create TOP-Document
      CREATE OBJECT DG_DYNDOC_ID
                       EXPORTING STYLE = 'ALV_GRID'.
    * Create Splitter for custom_container
      CREATE OBJECT DG_SPLITTER
                 EXPORTING PARENT  = G_CUSTOM_CONTAINER
                           ROWS    = 2
                           COLUMNS = 1.
    * Split the custom_container to two containers and move the reference
    * to receiving containers g_parent_html and g_parent_grid
      "i am allocating the space for grid and top of page
      CALL METHOD DG_SPLITTER->GET_CONTAINER
        EXPORTING
          ROW       = 1
          COLUMN    = 1
        RECEIVING
          CONTAINER = DG_PARENT_HTML.
      CALL METHOD DG_SPLITTER->GET_CONTAINER
        EXPORTING
          ROW       = 2
          COLUMN    = 1
        RECEIVING
          CONTAINER = DG_PARENT_GRID.
    *  CALL METHOD DG_SPLITTER->GET_CONTAINER
    *    EXPORTING
    *      ROW       = 2
    *      COLUMN    = 1
    *    RECEIVING
    *      CONTAINER = DG_PARENT_HTML.
    *  CALL METHOD DG_SPLITTER->GET_CONTAINER
    *    EXPORTING
    *      ROW       = 1
    *      COLUMN    = 1
    *    RECEIVING
    *      CONTAINER = DG_PARENT_GRID.
      "you can set the height of it
    * Set height for g_parent_html
      CALL METHOD DG_SPLITTER->SET_ROW_HEIGHT
        EXPORTING
          ID     = 1
          HEIGHT = 5.
      "from here as usual..you need to specify parent as splitter part
      "which we alloted for grid
      CREATE OBJECT G_GRID
             EXPORTING I_PARENT = DG_PARENT_GRID.
    * Set a titlebar for the grid control
      CLEAR GS_LAYOUT.
      GS_LAYOUT-GRID_TITLE = TEXT-003.
      GS_LAYOUT-ZEBRA = SPACE.
      GS_LAYOUT-CWIDTH_OPT = 'X'.
      GS_LAYOUT-NO_ROWMARK = 'X'.
      GS_LAYOUT-CTAB_FNAME = 'CELLCOLOR'.
      CALL METHOD G_GRID->REGISTER_EDIT_EVENT
        EXPORTING
          I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_ENTER.
      CREATE OBJECT G_HANDLER.
      SET HANDLER G_HANDLER->HANDLE_DOUBLE_CLICK FOR G_GRID.
      SET HANDLER G_HANDLER->HANDLE_HOTSPOT_CLICK FOR G_GRID.
    *  SET HANDLER G_HANDLER->END_OF_LIST FOR G_GRID.
      SET HANDLER G_HANDLER->TOP_OF_PAGE FOR G_GRID.
      DATA: LS_CELLCOLOR TYPE LVC_S_SCOL. "required for color
      DATA: L_INDEX TYPE SY-TABIX.
      "Here i am changing the color of line 1,5,10...
      "so you can change the color of font conditionally
      LOOP AT ITAB.
        L_INDEX = SY-TABIX.
        IF L_INDEX = 1 OR L_INDEX = 5 OR L_INDEX = 10.
          LS_CELLCOLOR-FNAME = 'VBELN'.
          LS_CELLCOLOR-COLOR-COL = '6'.
          LS_CELLCOLOR-COLOR-INT = '0'.
          LS_CELLCOLOR-COLOR-INV = '1'.
          APPEND LS_CELLCOLOR TO ITAB-CELLCOLOR.
          MODIFY ITAB INDEX L_INDEX TRANSPORTING CELLCOLOR.
          LS_CELLCOLOR-FNAME = 'POSNR'.
          LS_CELLCOLOR-COLOR-COL = '6'.
          LS_CELLCOLOR-COLOR-INT = '0'.
          LS_CELLCOLOR-COLOR-INV = '1'.
          APPEND LS_CELLCOLOR TO ITAB-CELLCOLOR.
          MODIFY ITAB INDEX L_INDEX TRANSPORTING CELLCOLOR.
        ENDIF.
      ENDLOOP.
    * setting focus for created grid control
      CALL METHOD CL_GUI_CONTROL=>SET_FOCUS
        EXPORTING
          CONTROL = G_GRID.
    * Build fieldcat and set editable for date and reason code
    * edit enabled. Assign a handle for the dropdown listbox.
      PERFORM BUILD_FIELDCAT.
      PERFORM  SET_DRDN_TABLE.
    * Optionally restrict generic functions to 'change only'.
    *   (The user shall not be able to add new lines).
      PERFORM EXCLUDE_TB_FUNCTIONS CHANGING LT_EXCLUDE.
    **Vaiant to save the layout
      LS_VARI-REPORT      = SY-REPID.
      LS_VARI-HANDLE      = SPACE.
      LS_VARI-LOG_GROUP   = SPACE.
      LS_VARI-USERNAME    = SPACE.
      LS_VARI-VARIANT     = SPACE.
      LS_VARI-TEXT        = SPACE.
      LS_VARI-DEPENDVARS  = SPACE.
    **Calling the Method for ALV output
      CALL METHOD G_GRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
          IT_TOOLBAR_EXCLUDING = LT_EXCLUDE
          IS_VARIANT           = LS_VARI
          IS_LAYOUT            = GS_LAYOUT
          I_SAVE               = 'A'
        CHANGING
          IT_FIELDCATALOG      = IT_FIELDCAT
          IT_OUTTAB            = ITAB[].
      "do these..{
    * Initializing document
      CALL METHOD DG_DYNDOC_ID->INITIALIZE_DOCUMENT.
    * Processing events
      CALL METHOD G_GRID->LIST_PROCESSING_EVENTS
        EXPORTING
          I_EVENT_NAME = 'TOP_OF_PAGE'
          I_DYNDOC_ID  = DG_DYNDOC_ID.
      "end }
    * Set editable cells to ready for input initially
      CALL METHOD G_GRID->SET_READY_FOR_INPUT
        EXPORTING
          I_READY_FOR_INPUT = 1.
    ENDFORM.                               "CREATE_AND_INIT_ALV
    *&      Form  EXCLUDE_TB_FUNCTIONS
    *       text
    *      -->PT_EXCLUDE text
    FORM EXCLUDE_TB_FUNCTIONS CHANGING PT_EXCLUDE TYPE UI_FUNCTIONS.
    * Only allow to change data not to create new entries (exclude
    * generic functions).
      DATA LS_EXCLUDE TYPE UI_FUNC.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_DELETE_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_APPEND_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_INSERT_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_MOVE_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_CUT.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE_NEW_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_UNDO.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
    ENDFORM.                               " EXCLUDE_TB_FUNCTIONS
    *&      Form  build_fieldcat
    *       Fieldcatalog
    FORM BUILD_FIELDCAT .
      DATA: L_POS TYPE I.
      L_POS = L_POS + 1.
      X_FIELDCAT-SCRTEXT_M = 'Delivery'(024).
      X_FIELDCAT-FIELDNAME = 'VBELN'.
      X_FIELDCAT-TABNAME = 'IT_FINAL'.
      X_FIELDCAT-COL_POS    = L_POS.
      X_FIELDCAT-NO_ZERO    = 'X'.
      X_FIELDCAT-OUTPUTLEN = '10'.
      X_FIELDCAT-HOTSPOT = 'X'.
      APPEND X_FIELDCAT TO IT_FIELDCAT.
      CLEAR X_FIELDCAT.
      L_POS = L_POS + 1.
      X_FIELDCAT-SCRTEXT_M = 'Item'(025).
      X_FIELDCAT-FIELDNAME = 'POSNR'.
      X_FIELDCAT-TABNAME = 'IT_FINAL'.
      X_FIELDCAT-COL_POS    = L_POS.
      X_FIELDCAT-OUTPUTLEN = '5'.
      APPEND X_FIELDCAT TO IT_FIELDCAT.
      CLEAR X_FIELDCAT.
      L_POS = L_POS + 1.
      X_FIELDCAT-SCRTEXT_M = 'Drop'(025).
      X_FIELDCAT-FIELDNAME = 'DROP'.
      X_FIELDCAT-TABNAME = 'IT_FINAL'.
      X_FIELDCAT-COL_POS    = L_POS.
      X_FIELDCAT-OUTPUTLEN = '5'.
      X_FIELDCAT-EDIT = 'X'.
      X_FIELDCAT-DRDN_HNDL = '1'.
      X_FIELDCAT-DRDN_ALIAS = 'X'.
      APPEND X_FIELDCAT TO IT_FIELDCAT.
      CLEAR X_FIELDCAT.
    ENDFORM.                    " build_fieldcat
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'MAIN100'.
      SET TITLEBAR 'MAIN100'.
      IF G_CUSTOM_CONTAINER IS INITIAL.
    **Initializing the grid and calling the fm to Display the O/P
        PERFORM CREATE_AND_INIT_ALV.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  SET_DRDN_TABLE
    *       text
    FORM SET_DRDN_TABLE.
      DATA:LT_DRAL TYPE LVC_T_DRAL,
            LS_DRAL TYPE LVC_S_DRAL.
      LOOP AT ITAB .
    * First listbox (handle '1').
        IF SY-INDEX = 1.
          LS_DRAL-HANDLE = '1'.
          LS_DRAL-VALUE =  ' '.
          LS_DRAL-INT_VALUE =  ' '.
        ELSE.
          LS_DRAL-HANDLE = '1'.
          LS_DRAL-VALUE =  ITAB-POSNR.
          LS_DRAL-INT_VALUE =  ITAB-POSNR.
        ENDIF.
        APPEND LS_DRAL TO LT_DRAL.
      ENDLOOP.
    **Setting the Drop down table for Reason Code
      CALL METHOD G_GRID->SET_DROP_DOWN_TABLE
        EXPORTING
          IT_DROP_DOWN_ALIAS = LT_DRAL.
    ENDFORM.                               " set_drdn_table
    *&      Form  EVENT_TOP_OF_PAGE
    *       text
    *      -->DG_DYNDOC_ID  text
    FORM EVENT_TOP_OF_PAGE USING   DG_DYNDOC_ID TYPE REF TO CL_DD_DOCUMENT.
      "this is more clear.....check it
      "first add text, then pass it to comentry write fm
      DATA : DL_TEXT(255) TYPE C.  "Text
    * Populating header to top-of-page
      CALL METHOD DG_DYNDOC_ID->ADD_TEXT
        EXPORTING
          TEXT      = 'Test Report'
          SAP_STYLE = CL_DD_AREA=>HEADING.
    * Add new-line
      CALL METHOD DG_DYNDOC_ID->NEW_LINE.
      CLEAR : DL_TEXT.
    * Move program ID
      CONCATENATE 'Program Name :' SY-REPID
             INTO DL_TEXT SEPARATED BY SPACE.
    * Add Program Name to Document
      PERFORM ADD_TEXT USING DL_TEXT.
    * Add new-line
      CALL METHOD DG_DYNDOC_ID->NEW_LINE.
      CLEAR : DL_TEXT.
    * Move User ID
      CONCATENATE 'User ID :' SY-UNAME INTO DL_TEXT SEPARATED BY SPACE
    * Add User ID to Document
      PERFORM ADD_TEXT USING DL_TEXT.
    * Add new-line
      CALL METHOD DG_DYNDOC_ID->NEW_LINE.
      CLEAR : DL_TEXT.
    * Move count (no of records).
      move v_lines to v_line.
      CONCATENATE 'No of records :' v_line INTO DL_TEXT SEPARATED BY SPACE.
    * Add Client to Document
      PERFORM ADD_TEXT USING DL_TEXT.
    * Add new-line
      CALL METHOD DG_DYNDOC_ID->NEW_LINE.
      CLEAR : DL_TEXT.
    * Move date
      WRITE SY-DATUM TO DL_TEXT.
      CONCATENATE 'Date :' DL_TEXT INTO DL_TEXT SEPARATED BY SPACE.
    * Add Date to Document
      PERFORM ADD_TEXT USING DL_TEXT.
    * Add new-line
      CALL METHOD DG_DYNDOC_ID->NEW_LINE.
      CLEAR : DL_TEXT.
    * Move time
      WRITE SY-UZEIT TO DL_TEXT.
      CONCATENATE 'Time :' DL_TEXT INTO DL_TEXT SEPARATED BY SPACE.
    * Add Time to Document
      PERFORM ADD_TEXT USING DL_TEXT.
    * Add new-line
      CALL METHOD DG_DYNDOC_ID->NEW_LINE.
    * Populating data to html control
      PERFORM HTML.
    ENDFORM.                    " EVENT_TOP_OF_PAGE
    *&      Form  ADD_TEXT
    *       To add Text
    FORM ADD_TEXT USING P_TEXT TYPE SDYDO_TEXT_ELEMENT.
    * Adding text
      CALL METHOD DG_DYNDOC_ID->ADD_TEXT
        EXPORTING
          TEXT         = P_TEXT
          SAP_EMPHASIS = CL_DD_AREA=>HEADING.
    ENDFORM.                    " ADD_TEXT
    *&      Form  HTML
    *       text
    FORM HTML.
      DATA : DL_LENGTH  TYPE I,                           " Length
             DL_BACKGROUND_ID TYPE SDYDO_KEY VALUE SPACE. " Background_id
    * Creating html control
      IF DG_HTML_CNTRL IS INITIAL.
        CREATE OBJECT DG_HTML_CNTRL
             EXPORTING
                  PARENT    = DG_PARENT_HTML.
      ENDIF.
    * Reuse_alv_grid_commentary_set
      CALL FUNCTION 'REUSE_ALV_GRID_COMMENTARY_SET'
        EXPORTING
          DOCUMENT = DG_DYNDOC_ID
          BOTTOM   = SPACE
        IMPORTING
          LENGTH   = DL_LENGTH.
    * Get TOP->HTML_TABLE ready
      CALL METHOD DG_DYNDOC_ID->MERGE_DOCUMENT.
    * Set wallpaper
      CALL METHOD DG_DYNDOC_ID->SET_DOCUMENT_BACKGROUND
        EXPORTING
          PICTURE_ID = DL_BACKGROUND_ID.
    * Connect TOP document to HTML-Control
      DG_DYNDOC_ID->HTML_CONTROL = DG_HTML_CNTRL.
    * Display TOP document
      CALL METHOD DG_DYNDOC_ID->DISPLAY_DOCUMENT
        EXPORTING
          REUSE_CONTROL      = 'X'
          PARENT             = DG_PARENT_HTML
        EXCEPTIONS
          HTML_DISPLAY_ERROR = 1.
      IF SY-SUBRC NE 0.
        MESSAGE I999 WITH 'Error in displaying top-of-page'(036).
      ENDIF.
    ENDFORM.                    " HTML
    Regards
    vijay

Maybe you are looking for

  • Printing abap reports

    Hi All, Is it possible to print ABAP report output written through se38. Thanks Rakesh

  • Inherited Permisions in 10.4.6

    I can seem to get Inherited Permissions to work. Least that's what I think the issue is. The problem is on my fileserver, when clients create a folder it is created with read only access for the staff and read & write for the owner (which is the user

  • Change project export ouput path .../tmp

    Hi all, how is it possible to change the output path MII (12.0 in this case) internally uses when exporting a project or importing jar-files? We want to change it from /usr/sap/<SID>/tmp to something like /usr/sap/<SID>/xfer... for access and company

  • PKI Certificates on smart cards.

    Hi techies, I am a Smart card operating system developer. I m working on a PKI OS project. and i m stuck while implementing the verify certificate command. Well currently the issue i m facing is how to store certificates on smart card. i mean which f

  • Flat file error : SQL :RSDU_TABLE_SPLIT_PARTITION_MSS

    Hi Guys, I have issues in flat file loading, Infopackage is failed with error. The request is yellow in status in RSMO, though the relavane job got cancelled with "RSDU_TABLE_SPLIT_PARTITION_MSS: Error During SQL Execution for Table /BIC/FCUBE_NAME"