取消
显示结果 
搜索替代 
您的意思是: 

mutually exclusive buttons

Hi All,
 
I have two buttons on a form and one is enabled and the other is disabled and greyed out. I want that when I click on the enabled button, to disable + grey out and to enable the other button. I created a property called disabled for the buttons, but I am not sure how to change it. My way would be with two cases and some boolean logic, but maybe there is an easier way.
 
Regards,
Nick
0 项奖励
1 条消息(共 6 条)
4,271 次查看
Just use an event structure... See attached LabVIEW 7.0 example.
 
Modify as needed.
2 条消息(共 6 条)
4,266 次查看
Of course you did not specify what kind of mechanical action the buttons should have, and in the case of switch action, if the diabled states should either depend, or be independent, of the boolean value. There are many possible interpretations.
0 项奖励
3 条消息(共 6 条)
4,261 次查看

Hi Altenbach,

Thank you, your example did exactly what I was looking for. I know I didn't specified the details for what I was looking for.

Regards,

Nick

0 项奖励
4 条消息(共 6 条)
4,258 次查看
What about a radio control? only one choice of many is allowed.
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 项奖励
5 条消息(共 6 条)
4,227 次查看
Well, a radio control does not grey out the current selection. While it might be a better choice, It does not fulfill the stated requirements. 😉
0 项奖励
6 条消息(共 6 条)
4,217 次查看