03-01-2010 08:15 AM
Con LabView 8.5, un po'facendo prove e un po' grazie al forum sono riuscito a gestire l'evento Panel Close.
Avrei peró la necessitá di intercettare gli eventi generati per minimizzare la finestra riducendola a icona e viceversa (il restore della finestra iconizzata).
Guardando la lista degli eventi disponibili non ho trovato nulla che mi faccia capire quali sono i due eventi di cui necessito.
Qualcuno mi sa dire quali sono?
Grazie
03-01-2010 10:14 AM
Loose translation:
OP has been able to handle the Panel Close event in the situation when a window is minimized. Now the OP wants to be able to respond to the window being restored. Unfortunately, the OP cannot find an equivalent event in the event structure.
Reply:
There is no "Panel Open" event. One way to do this is to use the Timeout case and to monitor the Front Panel Window:State property. See attached example (modify as needed). If you're using Windows then another way to do it is to use the Windows Message Queue library. You can register for the specific Windows messages and monitor them to see if the message arrives.
Translation:
Non c'è un "Pannello di Open" evento. Un modo per farlo è di utilizzare il caso Timeout e per monitorare il Front Panel Window: State proprietà. Vedi modello allegato (modificare se necessario). Se si sta usando Windows un altro modo per farlo è di utilizzare la libreria di Windows Message Queue. È possibile registrarsi per gli specifici messaggi di Windows controllare per vedere se il messaggio arriva.
03-01-2010 10:40 AM - edited 03-01-2010 10:41 AM
perhaps "panel resize" could work... there is a "PrevState" data source in this event where you can check if the panel has been resized from a minimized state. This will fire on restore up, maximize, etc.
= LV 2009, don't know if this exists or not in 8.5
03-01-2010 10:48 AM
03-11-2010 04:20 AM
Sometime it work inly the second time.
Somebody is able to tell me where is the error in my little application?
Thank's