How to align my buttons to bottom of window?

Post Reply
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

How to align my buttons to bottom of window?

Post 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,
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
quique
Posts: 408
Joined: Sun Aug 13, 2006 5:38 am
Contact:

Post by quique »

in activate window you can use ON RESIZE to calculate de new positions
Saludos
Quique
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply