05-24-2009 02:25 AM
With high resolution monitors the text in the panel that the Two Button Dialog Function displays is often small and hard to read (at least for these old eyes). Is there any way to format this text?
Roy
Solved! Go to Solution.
05-24-2009 03:28 AM
You can make your own.
Make a simple subVI with two buttons and a text indicator. Make the windows apperance "dialog" style and add some logic (e.g. an event structure) to return the button that was pressed.
05-24-2009 07:21 AM - edited 05-24-2009 07:22 AM
One way you can quickly roll your own is to modify an Express VI:
05-24-2009 11:53 PM
Thanks, all. I knew I could 'make my own'. I was wondering if there was any way to format the text in that specific premade vi.
Roy
03-16-2010 05:34 AM
I'm using a two-button dialog that I'd like to be more dramatic. Does anyone have a vi sample as a pop-up message that they will share? I could use a cluster message, but I'd like the pop-up to hold the program like the dialog.
Thanks,
Dave
03-16-2010 08:58 AM
Define "dramatic". Are we talking Meryl Streep narrating the dialog box? Or were you thinking something a little less subtle?
Also, what does "cluster message" mean? And what do you mean by "the pop-up to hold the program like the dialog"?
03-17-2010 12:47 AM
dj143 wrote:I'm using a two-button dialog that I'd like to be more dramatic. Does anyone have a vi sample as a pop-up message that they will share? I could use a cluster message, but I'd like the pop-up to hold the program like the dialog.
03-17-2010 05:51 PM
In this case I’d like a red background with bold yellow text as opposed to the grey and black dialog. (Sorry Meryl…) I’m probably using the wrong jargon, but a “cluster message” is just a pop-up cluster that is formatted with whatever colors and text along with control buttons, indicators, etc. Of course the application continues to run when displaying a cluster. In my current project I need to hold the loop while waiting for the operator to make a decision. Additionally it’s a critical decision that could foul things if the correct choice is not made. In other words I want the operator to take an extra moment to think as opposed to mindlessly clicking a ubiquitous grey and black dialog.
I appreciate Altenbach’s response because it tells me what I need to know such as the modal issue. Also I was not aware of the “dialog” option. (I learn something new every day.) I assume this dialog vi does not need to be controlled by VI Server.
I’m very behind in my projects and am grateful for any help that I get.
Dave
03-17-2010 10:00 PM
You indicated you want the application to continue running when displaying this popup, but you want to hold the loop. These seem contradictory, unless you have parallel loops in your applicaiton, and you are trying to pause just one loop. Either way, when you call a subVI within a loop LabVIEW will wait until that VI is finished before proceeding to the next iteration. If the subVI is set up to display itself in a modal manner, then that will force the loop to hold until the user dismisses the dialog box. This would not hold a parallel loop. See attached example as a starting point.
WARNING: Be careful with VIs that are set up as "dialog"/"modal" via their properties. If you have its front panel open and you run the top-level VI then it will display itself in the front, preventing you from manipulating the main VI. If you've chose to hide the close box (the "X" in the title bar) then you won't be able to close the window, and you'll have to force-close LabVIEW.
03-18-2010 06:39 AM
This is exactly what I was looking for. When I said “hold the program” I meant “hold the loop.” I apologize for being sloppy. The example vi’s sent is like my application where the pop-up resides in while loop that runs the user interface.
Attached is a two-button version. How is the X button (close window) used without stalling the main vi? I tried customizing it to no avail. At worse case I can opt to not show the X button, but I’d prefer to have it like the two-button dialog function.
Dave