FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to align my buttons to bottom of window?
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM

How to align my buttons to bottom of window?

Posted: Mon Jul 21, 2008 01: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.06
Posts: 408
Joined: Sun Aug 13, 2006 05:38 AM

How to align my buttons to bottom of window?

Posted: Mon Jul 21, 2008 05:07 PM

in activate window you can use ON RESIZE to calculate de new positions

Saludos

Quique
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

How to align my buttons to bottom of window?

Posted: 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

Continue the discussion