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

>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

Similar Messages

  • How to set the position in SAP Script

    Hi Professionals,
    Can anyone tell me that How can I set the position of an bitmap Image (after inserting) in SAP Script ?
    by default position is in Left, I need to align it in center or somewhere else.
    Anybody knows, kindly reply!
    Thanks
    Devinder

    Hi,
    But Can we assign a window under another window. Because I want to insert a bmp picture on particular position.
    example:- there is a digital signature and wanted to insert upon a name.
    So, there is a text (which is customer name) and digital signature (in bmp picture format) upon it.
    Thanks
    Devinder

  • I need to set the position of components on a page that contains a MenuBar,

    I need to set the position of components on a page that contains a MenuBar, but MenuBar does not provide a getPreferred size method.
    How can I get the MenuBar's size in AWT?
    Thanks.

    A menubar is not a general component that is added to a frame like any another. It is the specific responsibility of the setMenuBar/setJMenuBar methods to deal with this.

  • How do you set the position of JScrollBars?

    Can anyone tell me how to set the positions of the JScrollBars in a JScrollPane so that it will show the area I want?
    please,
    Tommy

    Sorry i should of add the area I am talking about is a JPanel.

  • Can I set the position of the new mail window?

    Each time I compose a new message, the new message window seems to appear at a different place, usually obscuring the main window. I would like to have it always appear to the side of the main window. Can I set this, perhaps in the property list?

    Perhaps something is corrupt that is causing bad behavior for some users and so my comments are unhelpful, but here's some more data to add to this discussion: My Mail.app behaves as George Coghill described above, subsequent message windows open where the previous window was open.
    For example- Close all Mail.app windows so that only the main "Message Viewer" window is open (basically, don't have any emails that you're in the middle of drafting open).  Open a new message, adjust the position as you wish, then close it.  When you open another new message, does it have the same position as the one you just adjusted?  It should.
    However, for me, sometimes it would be off by a few pixels as Thomas A Reed described above.  I realized that this was because I had another compose window open in the background.  So as you troubleshoot, make sure no other compose windows are open, to remove one complication and help isolate the issue.
    Side note: in cases where the original window's height fully extended across the display, the new window would be shifted over to the right only, but not down at all as some apps do (like Mac Word, annoyingly).  Another note: if you maximize the original window, subsequent windows also open maximized and unshifted.
    A corollary to the paragraph immediately above is that if you open say 3 new windows, the second one will be shifted and the third one will be even more shifted.  Let's say you send all 3, and now open a new window, it has the position of the 3rd window.  Annoying.  Yes, it would be nice if it always opened new windows in the exact same position, but Apple likely won't do this since people will get confused and think they lost the window if it doesn't do the shifting.  I guess the take-away is draft one message at a time or maximize your composition windows, otherwise it's going to move :/
    A band-aid solution: When a window isn't positioned how you like it, a quick/simple way to reposition it is with apps like Moom (my favorite), Cinch, Divvy, SizeUp, etc.  While I'm at it I should mention RightZoom, which makes the green zoom button behave like the Windows maximize button, and Cordless Dog Stay, which is great if you connect/disconnect your laptop to a screen causing the window positions to always get disturbed between displays.

  • Is there a property to set the position of a table-scrollbar to the begining?

    Hello,
    i have a VI which displays a table and the table gets data from time to time.
    Are there any properties that i can use to set the scrollbar at the right side to the beginning of the table?
    The scrollbar stays always at the last position.
    Thx for your help.

    The property is "Index values"
    Message Edité par chilly charly le 11-08-2007 04:03 PM
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Example_BD.png ‏1 KB

  • Setting the visibility of a button after a click on a TabbedPane

    I have a page with a Tabbed Pane.
    I would like to set the visibility of a command button when I click on a Tab.
    To do that I put a disclosureListener like this:
    <af:panelTabbed position="above" testId="Tab1" >
    <af:showDetailItem id="Tab1" text="Tab1" disclosureListener="#{prova.apri}">
    <af:outputText value="Table1"/>
    </af:showDetailItem>
    <af:showDetailItem id="Tab2" text="Tab2">
    <af:outputText value="Table2"/>
    </af:showDetailItem>
    </af:panelTabbed>
    In the backing bean I have the attribute bound to the commandButton and the listener method like this:
    public void apri(DisclosureEvent disclosureEvent)
    // Add event code here...
    RichShowDetailItem o =
    (RichShowDetailItem) disclosureEvent.getSource();
    this.commandButton1.setVisible(true);
    this.commandButton1.setRendered(true);
    It doesn't work !! I guess I'm missing something....
    Could someone help me??
    Thanks a lot.
    Alfredo

    Based on the code you provided it does not look like you are using a partialPageTrigger, which would be required in this case.
    --Ric                                                                                                                                                                                                                                                                               

  • Can anybody help me? How to set the position of a pop up window(new Jframe)

    in my program, there is a functionality such as this: user clicks the button and then system generate a new window(new Jframe),
    but the posistion in the screen where the window was generated is fixed, everytime it pops up at the left side of my main frame, I am just wondering is there a way of seting the posistion of the window which will pop up?
    thanks for your reply

    Sure. Read the JFrame API. Look at all the setXXX methods and you will find one that allows you to set the location of the frame on the desktop.

  • Change the position of toolbar buttons in RoboHelp 9 (WebHelp)

    Hi,
    I have been trying to create a custom skin for my webhelp output. I am able to specify the toolbar background image. However, the text in the image is being hidden by the toolbar buttons (Contents, Index, Serach, etc buttons). Is there any way to alter the position of the toolbar buttons (for example, lowering these buttons) so that the text in the image is displayed clearly?
    I would be glad to know of any work-around to this problem.
    Thanks!

    Hello again
    After I replied I noticed you had replied to two other threads. Really old threads. You basically asked the same question twice about how to resize images.
    As you are new here you likely don't understand the "rules of the road" so to speak. So it would be helpful to you to take a few moments and read through the thread I'm linking below. We put it together to help new folks.
    Click here to view
    As for how to change those button images, you do that using another application that manipulates images. SnagIt, PhotoShop, Windows Paint, GIMP,  Paint Shop Pro, Etc.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How to set the location of a button  (in an applet)

    Hello
    How do i set the location of the button
    forexample if i want to create a button in the middle of the applet, how would i do that
    Thanks :)

    supahsain08 wrote:
    Well i did this
    Triangle.setLocation(50, 100);
    (where Triangle is a buton)
    it doesn't do anything, stays at the same placeIt's all about context here and there are still many unknowns here that can effect your result and that you have not told us or shown us. My suggestion to you is to consider posting an SSCCE (Short, Self Contained, Correct (Compilable), Example, a condensed program similar to your current program in that it demonstrates the problem at hand, but is the smallest bit of code that still compiles and has no extra code that's not relevant to your problem. For more info on SSCCEs please look here:
    [http://homepage1.nifty.com/algafield/sscce.html|http://homepage1.nifty.com/algafield/sscce.html]
    Also, when posting your code, please use code tags so that your code will retain its formatting and be readable. To do this, you can will need to paste already formatted code into the forum, highlight this code, and then press the "code" button at the top of the forum Message editor prior to posting the message. You may want to click on the Preview tab to make sure that your code is formatted correctly. Another way is to place the tag &#91;code] at the top of your block of code and the tag &#91;/code] at the bottom, like so:
    &#91;code]
      // your code block goes here.
      // note the differences between the tag at the top vs the bottom.
    &#91;/code]or
    {&#99;ode}
      // your code block goes here.
      // note here that the tags are the same.
    {&#99;ode}good luck, pete

  • How to set the location of a button

    Hello
    How do i set the location of the button
    forexample if i want to create a button in the middle of the applet, how would i do that
    Thanks :)

    Do not make duplicate posts.
    http://forum.java.sun.com/thread.jspa?threadID=5293505&messageID=10240164#10240164

  • Increase the height of push button ?

    Hi,
    I want to increase the height of the push button in the selection screen in module pool. Please suggest.
    Thanks in Advance.

    Ya, the length can be increased. But.. Actually the problem is: there is a module pool program executing which a selection screen comes first. In the selection screen, there is a push button with some text written in it.
    I need to increase the size of the push button , as well as the Text size, so that the people viewing the screen from the distance, will be able to see the Text clearly.
    Please suggest some solution.
    Thanks,
    Saheli.

  • Dynamically Setting the Position of a Subform

    Hello there
    I am trying to solve an issue with the dynamic positioning of a subform not working when the form is rendered from a process.
    I have a flowed XDP based form with a variable amount of content, and a “totals” subform that needs to be positioned at the bottom of the last page.  I do this with some JavaScript which works out the current Y position of the “totals” subform, and then sets the top margin of a proceeding “spacer” subform appropriately.  The code runs on the docReady eavent of the main subform, and runs correctly when the form is rendered dynamically, for example from within Designer.
    We need to be able to generate the form using a LiveCycle service.   When we attempt this using the generatePDFOutput service, the code correctly calculates and sets the required margin.  However, setting the margin has no effect (the “totals” subform is not moved).  I am unclear why this does work, i.e. why there is a different effect when rendering the form from the process.
    I am unable to move the code to an earlier event.  The latest event for which setting a margin actually works is formReady.  However, at this point the code to determine the current Y position of the “Totals” subform does not work.
    One idea I had was to render the form twice.  On the first rendering of the form, the code could calculated the required margin.  On the 2nd rendering of the form, the margin would be set at an appropriately early event such as initialise.  However, I do not know how to pass a value calculated in JavaScript back to a process.
    Any ideas would be appreciated.
    Many thanks
    Geoff Olding

    Hi,
    You can set the caret position in the JTextPane with the method(in JTextComponent) :
    public void setCaretPosition(int position)For exemple :
    myJTextPane pane = ...
    Document doc = myJtextPane.getStyledDocument();
    if(doc!=null){
      myJTextPane.setCaretPosition(doc.getLength());
    }bye

  • Is it possible to set the stateof a command button

    I want to call a function when the user presses a command button (left click), then wait until he releases the mouse button, then call a second function.
    Here is the code for EVENT_LEFT_CLICK:
    CallFunction_1(...)
    GetRelativeMouseState(panel, control, 0, 0, &mouseLButton, 0, 0);
    while(mouseLButton)
    ProcessSystemEvents();
    ProcessDrawEvents ();
    GetRelativeMouseState(panel, control, 0, 0, &mouseLButton, 0, 0);
    CallFunction_2(...)
    My Problem is, that the button does not chage its state to "pressed", so it appears to the user that he has not clicked on it.
    Is there any possibility to set the command button th the pressed state?

    The reason for this is that the LEFT_CLICK event has not been processed yet. We allow you to "swallow" any event to basically eliminate the built in effect of that event. In your case you want the normal effect of the LEFT_CLICK event to occur (button appears pressed on the panel), but you also want to launch a loop to check when the mouse has been released. This is easily done through posting a deferred call. A deferred call allows the current event to be completed and then calls the deferred callback after that. So your code would be changed to:
    In LEFT_CLICK,
    CallFunction_1(...)
    PostDeferredCall (funcName, (void*)control);
    Then write a function "funcName" with prototype:
    void CVICALLBACK funcName (void *callbackData);
    and code:
    void CVICALLBACK fu
    ncName (void *callbackData)
    int control = (int)callbackData;
    int mouseLButton = 0;
    GetRelativeMouseState (panel, control, 0, 0,
    &mouseLButton, 0, 0);
    while(mouseLButton)
    ProcessSystemEvents();
    ProcessDrawEvents ();
    GetRelativeMouseState (panel, control, 0, 0,
    &mouseLButton, 0, 0);
    CallFunction_2(...)
    This should solve your problem.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • How can i set the space between two button?

    Hello,
    I have
    <mx:HBox>
    <mx:Button label="one" />
    <mx:Button label="two" />
    </mx:HBox>
    how can i set the distance between this two compotents?
    Thanks

    quote:
    Originally posted by:
    robinbouc77
    Hi,
    you can use horizontalGap property on HBox to change the
    space between your buttons. I think the default value is 6. You can
    also use <mx:Spacer/>, but changing the gap on HBox is
    probably the cleanest way ;)
    C U
    perfect!!! works fine

Maybe you are looking for

  • Follow-up opportunity from quotation

    Hi Experts, I am using a quotation to create a follow-up opportunity. for this I am using TXN 'CRMD_BUS2000112'. using transaction type 'ISU service quotation'. now after processing it ...I want to check whether quotation data has been transferred to

  • Does iCloud photo Library just duplicates my iCloud photos Backup? or uses the same copy?

    Hi, So i want to enable both iCloud backup AND Photo Library. But, i was wondering, how will it be held? After turning on the iCloud Photo Library, will the photos in the Backup get deleted? or it uses them and share them between the two services? Or

  • Is it possible to connect 2 accessories to an iPad at the same time?

    I use an iPad as a cash register.  I currently have a credit card reader connected to it and I have a bluetooth barcode scanner.  There is a lot of interference with the bluetooth device and so I would like to hard wire the scanner to the iPad as wel

  • Uses report portlet in Portal

    Hi all, When I run my report portlet in Portal It show error: REP-52009: No such command (). I searched in Report 9i Error message but it not contain this error. Can you help me? Thanks so much! Trung

  • IPhone convert songs to lower data rate bug

    When I use iTunes to convert my music to 128kBit/s before copying most of the covers are lost on my iPhone 4s. When I import the music without converting it, the covers of the songs are displayed correctly on my iPhone. So what can I do to fix it? I