04-20-2012 07:18 AM
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.
04-20-2012 09:10 AM
Why don't you try to create one vi by your own like this.
04-20-2012 09:49 AM
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.
04-20-2012 10:09 AM
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.
04-20-2012 11:52 AM - edited 04-20-2012 11:58 AM
@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.
04-20-2012 12:07 PM
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.
So lets try it the other way Any better?
04-20-2012 12:14 PM
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.