does any one know how set the position of a button in the middle.
Professional Software Development Tools
does any one know how set the position of a button in the middle.
wndHandle = Application.GetWndHandle();
windowSize = Window.GetSize(wndHandle);
yourButtonSize = Button.GetSize("yourButtonName");
Button.SetPos("yourButtonName", (windowSize.Width/2)-(yourButtonSize.Width/2), (widowSize.Height/2)-(yourButtonSize.Height/2));
Good luck
Yossi
If you mean center the button in the middle of the AMS window, you can right click on the button, goto Align-click on to page-click center horizontal-click center verticle. This will do it in design time
What yosik said will do it at runtime.
thanks yosik!!
I have also done up an example that shows how to creat objects that "stay put" when you resize the window at run-time.
This may be of interest as well, at some point:
http://www.indigorose.com/forums/sho...light=stay+put
Intrigued