Message 1 of 2
(MEL)checkBox -edit -value not working as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
checkBox -edit -value on
one would expect that editing the checkBox -value to on would trigger the -onCommand.
if (`window -exists testCheckBoxUI`)
{
deleteUI testCheckBoxUI;
}
window -title "testCheckBox" testCheckBoxUI;
rowColumnLayout -numberOfColumns 3;
textFieldGrp -label "Write Something" -text "" -columnWidth 1 120 -columnWidth 2 235 TFGroup;
checkBox -label "On" -value off -onCommand "textFieldGrp -edit -enable true TFGroup;" -offCommand "textFieldGrp -edit -enable false TFGroup;" firstCheckBox;
checkBox -label "TurnFirstCheckBoxOn" -value off -onCommand "checkBox -edit -value on firstCheckBox;" turnCheckBox;
showWindow testCheckBoxUI;
unfortunately it doesn't. Not sure if its a bug or something im missing. It's wierd to me that editing value of a checkBox does not trigger the onCommand.
https://www.artstation.com/kelvintam