FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Change behavior of minimize button
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Change behavior of minimize button
Posted: Fri Jun 29, 2007 10:17 AM

Hi all,

is it possible to change the standard behavior of the minimize and close button of a window ?

A click on minimize should hide the windows

kind regards

Stefan
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Change behavior of minimize button
Posted: Fri Jun 29, 2007 12:35 PM
#define SIZE_MINIMIZED 1

ACTIVATE WINDOW oWnd ;
   ON RESIZE If( nSizeType == SIZE_MINIMIZED, oWnd:Hide(), oWnd:Show() )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Change behavior of minimize button
Posted: Sun Jul 01, 2007 06:09 PM

Antonio,

many thanks, it´s working.

But when i try to show the window again (oWnd:Show() ), it´s only shown in the taskbar. Do i miss something to restore it completely ?

kind regards

Stefan
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Change behavior of minimize button
Posted: Sun Jul 01, 2007 08:25 PM

Stefan,

Try:

oWnd:Restore(), oWnd:Show()

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Change behavior of minimize button
Posted: Mon Jul 02, 2007 07:37 AM

Antonio,

works perfectly :D

many thanks

kind regards

Stefan

Continue the discussion