LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting UI resize event block my VI

Hi,

I try to resize a chart if the user is resizing the vi UI.
Unfortunaltly, the option from the menu edition "Resize with the front
panel" is unavailable for my chart (maybe because it's in a tab
panel). So a way to resize it is to get the event "UI resize" and to
manage the size of my graphe.

But as I enter in my event, I seem to never go away from this event
structure.

Actually, just to stop my vi with the famous "stop button", I do the
following actions :
I launch my vi
I resize my UI
I put the stop button (its state is changing but my vi don't stop)
I need to resize my UI for the stop button state to be considered and
my VI stop.

I certainly do something wrong ;-(

My event structure is inside the main "while" loop.
I did not
use the option "block the front face until this event ends*"

Thanks for all.

*excuse for the translation, I use a french version.
0 Kudos
Message 1 of 3
(2,634 Views)
Bonjour,
J'imagine que dans le code, le bouton STOP utilisé est directement câblé à la condition de fin de la boucle while. Ayant moi même fais le test j'ai un comportement similaire à ce que tu décris dans ta question.
Il vaut mieux ajouter une condition d'événement '"stop":Valeur changée' en incluant le terminal dans la condition d'événement. Ensuite câbler le stop à la condition de fin de boucle.

J'attache un VI enregistré sous LV6.1 pour illustrer cette réponse.

Hope this helps !
Julien
0 Kudos
Message 2 of 3
(2,634 Views)
I wrote an event structure to handle resizing by referencing the mouse position. Perhaps you could implement this scheme in your code.

-jayme
jc
Mac 10.4
LV7.1
CLD
0 Kudos
Message 3 of 3
(2,634 Views)