Re: [Axapta-Knowledge-Village] Does anybody know how I can prevent a form from closing but should minimize

2005-01-24 Thread Raul Llorente Peña/OPENSOLUTIONS
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ó: ---

RE: RE : [Axapta-Knowledge-Village] Does anybody know how I can prevent a form from closing but should minimize

2005-01-21 Thread Preston A. Larimer
    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

Re: RE : [Axapta-Knowledge-Village] Does anybody know how I can prevent a form from closing but should minimize

2005-01-21 Thread Varden Morris
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,

RE : [Axapta-Knowledge-Village] Does anybody know how I can prevent a form from closing but should minimize

2005-01-20 Thread Steeve Gilbert
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