Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
405
UltraToolbar controls
posted

Hi,I need to draw 3 buttons and 2 text boxes inside a Toolbar, i have added then (StateButtonTool,TextBoxTool),BUT, I would like the buttons to be padded to the left, one text box in the center and one padded to the right. I am not using more than one toolbar because i have a background image that cannot be split to 2-3 Toolbars, any ideas? putt space between them(the number of buttons from the left is dynamic so maybe space will not be a good solution). Thanks.

 

Parents
No Data
Reply
  • 44743
    posted

    You cannot center tools in a toolbar. However, if you have a toolbar which fills its entire row in the dock area (it has IsMainMenuBar or Settings.FillEntireRow set to True), then you can right align some tools. You can do this by adding a LabelTool with no caption between the left and right aligned tools. Then set Spring on the LabelTool to True. At run-time, all tools after the LabelTool will be pushed over to the right.

Children
No Data