New Method in TWindow Class - ::RestoreAllIconized()

New Method in TWindow Class - ::RestoreAllIconized()

Postby RAMESHBABU » Fri May 15, 2009 12:54 pm

Hi Mr.Antonio,

Every time I upgrade to latest FWH build, I am adding the following functionality to
restore all the Iconized windows in MDI environment in "WINDOW.prg" and "MENU.PRG".

If you feel that this functionality can be permanently included in the above classes,
You can do it.

Code: Select all  Expand view


//----------------------------------------------------------------------------//

* [ Added by By RAMESH BABU P ]
METHOD RestoreAllIconized() CLASS TWindow

LOCAL oWnd, n

IF LEN( ::oWndClient:aWnd ) >0
   FOR n = 1 TO LEN( ::oWndClient:aWnd )
       oWnd := ::oWndClient:aWnd[n]:hWnd
       ShowWindow( oWnd, SW_RESTORE )
   NEXT
ENDIF

RETURN nil

//----------------------------------------------------------------------------//

* [ Added by By RAMESH BABU P ]
METHOD AddMdi() CLASS TMenu

...
...
      MENUITEM "&Iconize All"     ACTION ::oWnd:IconizeAll() ;
         MESSAGE "Iconize all open windows" ;
         WHEN Len( ::oWnd:oWndClient:aWnd ) > 0

      MENUITEM "&Resore All"      ACTION ::oWnd:RestoreAllIconized() ;
         MESSAGE "Restore all Iconized windows" ;
         WHEN Len( ::oWnd:oWndClient:aWnd ) > 0
...
...

return nil
 


Hope Fivetech project in Korea is going best.

Regards,

- Ramesh Babu P
User avatar
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 78 guests