MarcMellor
Programmer
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?
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?