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
785
How to "Anchor" toolbar to the Left?
posted

I need to create a toolbar that has tools anchored on the Left with a collection of tools also anchored on the Right such that when you size the window, some will float with the Right of the toolbar while the others remained anchored to the Left.  Space would fill the middle where the two part company.

I figure I could create two toolbars, place them on the same line, lock them in place so the user can't change their placement.  This is great thus far but the anchoring to the Right escapes me.

Any ideas would be appreciated.

Parents
No Data
Reply
  • 44743
    posted

    There is no way to anchor toolbars to the right. But you can accomplish this with a single toolbar. Add all your tools to the same toolbar. On the toolbar, set it's Settings.FillEntireRow to True. Add a LabelTool between the left tools and right tool. Set the SharedProps.Caption of the LabelTool to String.Empty and set it's Spring property to True. At run-time, this tool will take up all the extra space of the toolbar. This will increase it's width and all tools after it will be pushed out to the right side of the dock area.

Children
No Data