LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to know how to increase the window size and message font size on the the Three Button Dialog.vi

I like using the Three Button Dialog .vi. However, I am doing a job were I need to use a larger font size. I tried to adjust the core vi but could not make it do what I wanted. Any help would be great.

0 Kudos
Message 1 of 7
(4,398 Views)

Why don't you try to create one vi by your own like this.

 

 

-----

The best solution is the one you find it by yourself
Message 2 of 7
(4,392 Views)


P.

That sure will work. But, I like your signature line too much to pass up an opportunity to offer a critique.  Please don't be offended.
1: VI Properties Window Size- Check maintain proportions of window for different monitor resolutions.  (Your users will thank you)
2: The default Dialog properties can be problematic.  hide the run and abort buttons and do NOT allow the user to close the window (unless you handle the panel close event as if it was a cancel)
3: That SR - funny- you don't really need it do you? 
4: do we really need to write Message 100 times a second with the same value?
5: This Vi is the default for vi Server Vi Vi class P-node- you don't need to drop the ref!
6: polling in a loop is really only useful in LabVIEW Base development enviornment.  Use events.
7: Error Handleing.

So with that.  Here is your TBD.vi back with identical functionality (for error in = no error)

Nice work.


"Should be" isn't "Is" -Jay
Message 3 of 7
(4,386 Views)

Really a very good and efficient design. I thought of avoiding the Event and intentionally kept the SR but really I agree with your points it really makes sense. Thanks Jeff.

 

Comments and suggestions from anyone are always welcome.

-----

The best solution is the one you find it by yourself
Message 4 of 7
(4,381 Views)

@Jeff Bohrer wrote:



1: VI Properties Window Size- Check maintain proportions of window for different monitor resolutions.  (Your users will thank you)



Jeff,

 

Why do you think that is a good idea?  When I opened your VI on my screen, the buttons were cut off at the bottom, and there was a slight cutoff on the right side.  Without scrollbars or the ability to resize the panel, (which I generally wouldn't want on a dialog box anyway) there is no way to be able to see the whole dialog.

 

Did your VI show all of the buttons and show all of the text box?  On mine it looked like this.

 

 

 

What was your screen resolution and your monitor aspect ratio?  Mine is 1680 x 1050 for a 16:10 ratio.  I think you will have problems with checking this box.  I would recommend unchecking it.  Suppose you programmed on a 16:10 screen, but someone else has a 16:9, or even a 4:3.  That is going to screw up the appearance of the dialog unless you take the time to resize the buttons and text inside the dialog.  (And I feel checking the resize option inside the Window Appearance settings just never works right either.)

 

If I was the user, I'd appreciate a dialog box that wasn't cut off.  Smiley Wink

Message 5 of 7
(4,367 Views)

Why do you think that is a good idea? 

 

OK Bill- Perhaps because I managed to confuse myself on the function of that check box.Smiley Embarassed

BH.png

 

So lets try it the other way Any better?

 

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 7
(4,361 Views)

It's also easy enough to roll your own, and retain some of the features like being able to display one or two or three buttons. Example attached.

 

At the present time, I am only accepting comments if they are positive.

 

 

Richard






0 Kudos
Message 7 of 7
(4,355 Views)