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 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 <milind.gu...@gmail.com
> <mailto:milind.gu...@gmail.com>> wrote:
> 
>     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
>     is not in focus anymore and I close it. I have pasted it below for your
>     reference if that helps.
> 
>     Regards,
>     Milind
> 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to