ToolBar help

A

Alex

Hi all!
I want to design a Toolbar with too this feature:
- Some buttons are on the most left edge and some other buttons are on the
most right edge!
How to do it?
Wait for your helps!
Thanks!
 
A

Alex

Hi Peter!
Thanks for your answer, but I think, if we set as separator then when resize
it will not be correct !?
 
A

Alex

Hi Peter!
I don't understand! The real problem as you wrote! If the width of the
separators will remain the same ---> the buttons on the most right edge will
not locate at correct place (then will not be on the most right edge).
Anyway, when I set button separator, it's width becomes small...so Must I
set many buttons to reach to the right edge??? I feel not very optimally :))
Thanks!
 
P

Paul Wardle

Not tried this, but try creating two toolbars, both placed on a panel that
is docked to the top of your form.

Make the left toolbar anchored Left-Top-Right, the right toolbar anchored
Top-Right.

Set the AutoSize property on the right toolbar to true.

Place the left aligned buttons on the left toolbar and the right-aligned
buttons on the right toolbar.

This should get the result that you want?

You may get strange results if the toolbars are wrappable and you have lots
of buttons but hope this is some help!

Paul Wardle
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top