maximize

maximize

Postby lailton.webmaster » 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
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: maximize

Postby Loach » Thu Jun 11, 2009 6: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
Loach
 
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus

Re: maximize

Postby Antonio Linares » Thu Jun 11, 2009 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: maximize

Postby lailton.webmaster » Thu Jun 11, 2009 6:55 am

Thanks Antonio.

You can see about my topico (TActiveX)

thanks
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 36 guests