Page 1 of 1

How to align my buttons to bottom of window?

Posted: Mon Jul 21, 2008 1:36 pm
by Horizon
Hi,

I want to align my buttons (Ok, Cancel, Help) to bottom of Window (not dialog). when the window is resized, my buttons place should change.

In delphi, I put the Panel and set its alignment to bottom. I could not find anything like the panel (delphi).

Thanks,

Posted: Mon Jul 21, 2008 5:07 pm
by quique
in activate window you can use ON RESIZE to calculate de new positions

Posted: Mon Jul 21, 2008 10:08 pm
by Antonio Linares
Hakan,

FiveWin provides a Class TPanel and also provide auto alignment using oWnd:oTop, oWnd:oLeft, oWnd:oBottom, oWnd:oRight and oWnd:oClient

so if you create a panel and assign it to oWnd:oBottom, it will automatically resize and when the main window is resized

but you can also do as Quique tells you, simple change the oButton:nTop and oButton:nLeft from the ON RESIZE clause of the window