Take a look over WinApi, perhaps there's something like minimizeWindow. The code will have to be put in CloseOK(), that's sure... Raúl Llorente Peña Análisis, Desarrollo e Implementación en Microsoft Bussiness Solutions-AxaptaOPEN SOLUTIONS-"Myrl Stadnick" <[EMAIL PROTECTED]> escribió: ---
From: Varden Morris
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 21, 2005
6:40 AM
To:
Axapta-Knowledge-Village@yahoogroups.com
Subject: Re: RE :
[Axapta-Knowledge-Village] Does anybody know how I can prevent a form from
closing but should minimize
I think this way is a
I think this way is a smart way of doing it. In order for it to work you will have to override the canClose method instead of the close method. As steeve said, you only need the code for SC_MINIMIZE.
Varden Morris
J. Wray & Nephew Ltd. - Group I.S.
234 Spanish Town Road
Kingston 11, Jamaica,
Title: Message
Override close() and comment
the super() line and write that :
//Taken from technet
#define.SC_MAXIMIZE(61488)
#define.WM_SYSCOMMAND (0x0112)
WinAPI::SendMessage(element.hWnd(), #WM_SYSCOMMAND,
#SC_MAXIMIZE, '');
Now you just need the S
4 matches
Mail list logo