LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Change the default active button in popup menus?

Can I change which button is the active button in the CVI popups. For example, in the ConfirmPopup(), the active button is 'Yes', so if the user hits Enter, 'Yes' (=1) is returned to the program. Can I make the 'No' (=0) button the active button?
0 Kudos
Message 1 of 2
(2,719 Views)
I don't know if it's possible to change the behaviour of the system popups.
As a workaround to solve this item I suggest you to use a GenericMessagePopup instead of others popups. The GenericMessagePopup lets you define both the text for the buttons on the panel and the behviour of the popup (which is the active button, which responds to the escape key...). Last but not least, it gives you up to three buttons and an optional input field for the operator to write responses to the message.
All this with only a small increase in programming difficulty.
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,719 Views)