Change behavior of minimize button

Change behavior of minimize button

Postby StefanHaupt » 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
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Postby Antonio Linares » Fri Jun 29, 2007 12:35 pm

Code: Select all  Expand view
#define SIZE_MINIMIZED 1

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42078
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby StefanHaupt » Sun Jul 01, 2007 6: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
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Postby Antonio Linares » Sun Jul 01, 2007 8:25 pm

Stefan,

Try:

oWnd:Restore(), oWnd:Show()
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42078
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby StefanHaupt » Mon Jul 02, 2007 7:37 am

Antonio,

works perfectly :D


many thanks
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Rick Lipkin and 42 guests