FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour maximize
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
maximize
Posted: Thu Jun 11, 2009 12:30 AM

Hi,

have how i know when a window was maximized ?

exemple:

ownd:bMaximized:= {|| msginfo("Was maximized ") }

how make it ?

thanks

Posts: 41
Joined: Thu Dec 22, 2005 07:39 AM
Re: maximize
Posted: Thu Jun 11, 2009 06:04 AM

Hi!
You can try:
oWnd:OnResize:={|| iif( oWnd:nWidth>=getsysmetrics(0),MsgInfo('MAXIMIZED'),nil ) }

Best regards!

Sergey (Loach) Abelev

fwh 9.04/xHarbour 1.2.1 (Rev. 6406)/Bcc55
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: maximize
Posted: Thu Jun 11, 2009 06:34 AM

Lailton,

You can also use:

oWnd:bResized = { | nSizeType, nWidth, nHeight | ... your code ... }

nSizeType can be:

define SIZE_MAXIMIZED 2

define SIZE_MINIMIZED 1

define SIZE_RESTORED 0

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
Re: maximize
Posted: Thu Jun 11, 2009 06:55 AM

Thanks Antonio.

You can see about my topico (TActiveX)

thanks

Continue the discussion