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 window when the user activates a different window/program and my
>> dialog
>> is no longer the topmost window.
>> Any suggestions?
>>
>> TIA.
>> Ulrich.
> 
> 
> Try with the common callback KILLFOCUS_CB:
> 
> http://webserver2.tecgraf.puc-rio.br/iup/en/call/iup_killfocus_cb.html
> 
> Germán
> 
Hi Germán.

I have read this before. Its about keyboard focus. I don't change keyboard
focus, lets say, from bytton1 in my dialog to button2 in my dialog. I want to
activate a different window (eg. my email app or my text editor) and this
window becomes topmost and hides my dialog from being seen.
The background for my question is, i placed a icon in the tray. Clicking this
icon opens or hides my dialog. In case my dialog is state normal and covered
by a different app window, the 1st click on my tray icon minimizes/hides my
dialog but bring it topmost visible and i need a second click.
I found a different solution: I set 'topmost = "yes"' for my dialog and so my
dialog can't be covered by a different window and clicking my tray icon works
like expected.

Thanks.
Ulrich.

------------------------------------------------------------------------------
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to