Hi to all.
Is there a simple trick to relocate seperators within toolbars?
I can drag one from lib to toolbar but relocating one is difficult.
Any trick?
-Bart
If you're talking about in the IDE, use the property sheet to select them. That makes a drag handle visible and I haven't had any trouble dragging them around.
If that's not what you're after, can you elaborate?
Dan is right ... select them in the property sheet. But, even then, it's not always easy to work with them. If you resize the toolbar at design time, the separators may relocate themselves in unexpected ways.
If you want much closer control over the layout of the toolbar, place a container in it. In the toolbar's Resize, write code to resize the container so that it exactly fills the toolbar. Then place the buttons and other controls inside the container. That way, you will be able to position the control almost exactly where you want it.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Hi Dan and Mike,
Thanks for reply.
Dan's solution is not that easy to use; just as Mike says :
<<If you resize the toolbar at design time, the separators may relocate themselves in unexpected ways.>>
That's exeactly I experienced.
Mike do I understand you write that you advice to place buttons inside a container?
Will give that a try!
-Bart
I'm not saying that you should always place the buttons inside a container. It's just for cases where you want closer control over the layout of a toolbar.
If the toolbar just contains a simple series of buttons, it's not so important. The benefit of the container comes when you have various different controls, and you want to position them in a particular way.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.