STATIC FUNCTION WinResize( oWnd )
IF IsIconic( oWnd:nWnd )
// my code what to do when first iconized
ELSE
// do what is needed here
ENDIF
RETURN .T.
James Bott wrote:>Or use ON RESIZE.
A good idea, but the timer would be triggered for any resize not just iconizeng.
#define SIZE_RESTORED 0
#define SIZE_MINIMIZED 1
#define SIZE_MAXIMIZED 2
#define SIZE_MAXSHOW 3
#define SIZE_MAXHIDE 4
James Bott wrote:But in his situation I think checking for iconized is not going to work. See my other message discussing his problem.
ACTIVATE WINDOW ::oWnd ;
;//ON INIT ;
ON RESIZE If( nSizeType == SIZE_MINIMIZED, <StartTimer>, <EndTimer> ) ;
VALID ::End()
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 86 guests