LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure

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

 

0 Kudos
Message 1 of 5
(3,597 Views)

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.

0 Kudos
Message 2 of 5
(3,559 Views)

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.

 

evstr panel size.jpg 

= LV 2009, don't know if this exists or not in 8.5 

Message Edited by blawson on 03-01-2010 10:41 AM
-Barrett
CLD
0 Kudos
Message 3 of 5
(3,548 Views)
Odd, when I tried the Panel Resize previously it didn't work, which is why I was suggesting the polling mechanism. After seeing your post I tried it again and this time it worked. Very strange - not sure why it didn't work previously. I agree, though, that this would work.
0 Kudos
Message 4 of 5
(3,541 Views)

Sometime it work inly the second time.

Somebody is able to tell me where is the error in my little application?

 

Thank's

 

0 Kudos
Message 5 of 5
(3,453 Views)