Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I resize a Toolbar (AlignLeft) at runtime?

Status
Not open for further replies.

MarcMellor

Programmer
Jan 12, 2002
34
0
0
US
I have a program that needs to resize as a proportion of ScreenHeight and ScreenWidth so that it is full screen on any resolution setting. I have two Toolbars on a MDIForm, one at the top and one on the left hand side. The top one resizes as a proportion using
Toolbar1.ButtonHeight = ScreenHeight * 0.15
but the left hand one will not adjust with the same code. I found that even at designtime I could'nt change its size without first aligning it at the top and then aligning it on the left, so I tried to do the same in code without succes - it just returns to the default size. (I've tried Toolbar2.ButtonWidth and that does'nt seem to work either)
Is there anyway of doing this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top