Re: [Iup-users] minimize dialog when loosing focus

2016-12-02 Thread Ulrich Schmidt
Thank you all for the feedback. I found a solution for my problem and my program works. I detect the minimizing in show_cb() and re-show() the dialog. At least it works. :) And the focus_cb() sounds promizing. Ulrich. Am 02.12.2016 um 20:21 schrieb Antonio Scuri: > Milind, > > The new dia

Re: [Iup-users] minimize dialog when loosing focus

2016-12-02 Thread Antonio Scuri
Milind, The new dialog FOCUS_CB (available in SVN only) will simplify that a lot. It is specially useful for creating non modal dialogs with IupShow that when loses its focus can be automatically closed. Best, Scuri On Fri, Dec 2, 2016 at 4:49 PM, Milind Gupta wrote: > Hi Ulrich, >

Re: [Iup-users] minimize dialog when loosing focus

2016-12-02 Thread Milind Gupta
Hi Ulrich, I wrote a module to adapt any dialog to close if it lost focus. You can probably change the closing action to minimize action. The way I am doing it is by creating a timer and checking whether any of the controls in the dialog has focus. If none of them have it then the dialog

Re: [Iup-users] minimize dialog when loosing focus

2016-11-28 Thread Antonio Scuri
Hi, The KILLFOCUS_CB is problematic, because it will also be called when a button inside that dialog gets the focus. Recently I committed to the SNV a new callback called FOCUS_CB for the dialog that will be called when another dialog (or its children) gets the focus. But it will work only if a

Re: [Iup-users] minimize dialog when loosing focus

2016-11-27 Thread Ulrich Schmidt
Am 28.11.2016 um 00:36 schrieb Germán Arias: > Hi, > > El dom, 27-11-2016 a las 17:30 +0100, Ulrich Schmidt escribió: >> Hi. >> I use a iup.dialog as main window on Windows. All working well so >> far. >> It is a kind of window popping up when some event occurs. I want to >> minimize >> this win

Re: [Iup-users] minimize dialog when loosing focus

2016-11-27 Thread Germán Arias
Hi, El dom, 27-11-2016 a las 17:30 +0100, Ulrich Schmidt escribió: > Hi. > I use a iup.dialog as main window on Windows. All working well so > far. > It is a kind of window popping up when some event occurs. I want to > minimize > this window when the user activates a different window/program and

[Iup-users] minimize dialog when loosing focus

2016-11-27 Thread Ulrich Schmidt
Hi. I use a iup.dialog as main window on Windows. All working well so far. It is a kind of window popping up when some event occurs. I want to minimize this window when the user activates a different window/program and my dialog is no longer the topmost window. Any suggestions? TIA. Ulrich. -