LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

enable disable popup and center picture

Solved!
Go to solution

Hi !

 

I created my own popup message and I want an Enable/disable option like the express popup message.

I did a case which include everything in my VI but the window is still blinking when it is false (disable) and what I want is to not displayed it at all when it set on disable.

 

My second question, I have a picture to display and I would like to center the picture in the "PictureDisplay" area, is there a way to do that ?

 

You can find my VI in attachment.

 

Thank you guys. 

Message Edité par remvu le 10-26-2009 04:53 AM
0 Kudos
Message 1 of 4
(3,215 Views)

here a printsreen :

popup.JPG 

0 Kudos
Message 2 of 4
(3,212 Views)
Solution
Accepted by remvu

For the first question

 

You have to uncheck "Show front panel when called".

 

Show front panel when called.jpg

 

In the VI, you open the front panel only when the control enable? is true.

Popup window1.jpg

 

Your previous code with a small modification

Popup window 2.jpg

 

You close the front panel.

Popup window3.jpg

 

For the second question

 

I don't see a straigt forward way to center the image in the image control.

 

a) create an image with the same color of the front panel and use Draw Flattened Pixmap.vi to insert yours image (from the file) at the coordinates you want (shift the coordinates of the rectangle).

Image data.jpg

 

or b) ajust the size of image display to the size of the image and center the image display into the pane.

 

Image display.jpg

 

 

Jean-Marc

 

Message 3 of 4
(3,189 Views)
Thanks for your time J-M it works well.
0 Kudos
Message 4 of 4
(3,170 Views)