How to align my buttons to bottom of window?

How to align my buttons to bottom of window?

Postby Horizon » Mon Jul 21, 2008 1:36 pm

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 & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Postby quique » Mon Jul 21, 2008 5:07 pm

in activate window you can use ON RESIZE to calculate de new positions
Saludos
Quique
User avatar
quique
 
Posts: 408
Joined: Sun Aug 13, 2006 5:38 am

Postby Antonio Linares » Mon Jul 21, 2008 10:08 pm

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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 66 guests