Skip to Content
author's profile photo Former Member
Former Member

Set the position of push buttons

Hi,

I have created two push buttons using the method add_button of cl_gui_toolbar class. But those two push buttons are coming side by side. But I need to show them one after the other.

Is there any way to display the buttons one after the other. I tried set_position, set_left, set_height. But still they are coming side by side.

Plesae guide me in this regard.

Regards,

Kishore

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Aug 10, 2008 at 02:02 PM

    >But those two push buttons are coming side by side. But I need to show them one after the other.

    I am not sure what you want from this....side by side and one after the other

    * append a separator to normal toolbar
        CLEAR ls_toolbar.
        MOVE 3 TO ls_toolbar-butn_type. "<----Separator
        APPEND ls_toolbar TO e_object->mt_toolbar.
    * append an icon to show booking table
        CLEAR ls_toolbar.
        MOVE 'BUTTON' TO ls_toolbar-function.
        MOVE icon_employee TO ls_toolbar-icon.
        MOVE 'Show Bookings'(111) TO ls_toolbar-quickinfo.
        MOVE 'Detail'(112) TO ls_toolbar-text.
        MOVE ' ' TO ls_toolbar-disabled.
        APPEND ls_toolbar TO e_object->mt_toolbar.
    * append a separator to normal toolbar
        CLEAR ls_toolbar.
        MOVE 3 TO ls_toolbar-butn_type. "<----Separator
        APPEND ls_toolbar TO e_object->mt_toolbar.
    * append an icon to show booking table
        CLEAR ls_toolbar.
        MOVE 'BUTTON2' TO ls_toolbar-function.
        MOVE icon_ok TO ls_toolbar-icon.
        MOVE 'Show Flight'(113) TO ls_toolbar-quickinfo.
        MOVE 'Flights'(114) TO ls_toolbar-text.
        MOVE ' ' TO ls_toolbar-disabled.
        APPEND ls_toolbar TO e_object->mt_toolbar.

    Now you will get a separator in between the two buttons.

    |   BUTTTON1  |   BUTTON2

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 10, 2008 at 03:23 PM

    Hi,

    I tried with the separator. But I need the buttons one after the other.

    I want Button1 at line 1 and Button2 at line2.

    Regards,

    Kishore.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.