FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Resizing a window
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Resizing a window
Posted: Thu Nov 08, 2007 12:55 PM
Hello,

In my application I have defined a window oWnd like this :
DEFINE WINDOW oWnd FROM xTop,xLeft TO xBottom,xRight ...

After having changed the sizes of oWnd in a certain dialog box, I tried to change the sizes of my window (unfortunately without any succes) with this code :
oWnd:nTop()    := xTop
oWnd:nLeft()   := xLeft
oWnd:nBottom() := xBottom
oWnd:nRight()  := xRight
oWnd:Refresh()

What do I do wrong ?

Of course, quitting and restarting my application solves the problem too, but that is not what I want.

Thanks a lot in advance.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Resizing a window
Posted: Thu Nov 08, 2007 01:22 PM

Use oWnd:Move() method instead.

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Resizing a window
Posted: Thu Nov 08, 2007 01:54 PM

Michel,

You can also do it this way:

WndTop( oWnd:hWnd, xTop )
WndLeft( oWnd:hWnd, xLeft )
oWnd:nWidth = xWidth
oWnd:nHeight := xHeight

for controls, you can simply do:

oControl:nTop = ...
oControl:nLeft = ...

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion