Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a problem with setting ButtonRowCommandInput as fully disabled at the first time, I mean right after all controls are prepared and ready. Control seems to be disabled but its items not (user can interact with them):
There's no matter that multiselect is on or off in the control - it's items are always enabled. Disabling works when it is triggered once again by other control in. I've also checked the example available here: https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-e5c4dbe8-ee48-11e4-9823-f8b156d7cd97
Modification of the script (buttonRowInput2.isEnabled = False) didn't help:
...
# Create multi selectable button row input.
buttonRowInput2 = tab1ChildInputs.addButtonRowCommandInput('buttonRow2', 'Multi-select Buttons', True)
buttonRowInput2.isEnabled = False
buttonRowInput2.listItems.add('Item 1', False, 'resources/One')
buttonRowInput2.listItems.add('Item 2', False, 'resources/Two')
...Is disabling of row button possible at start or the only way is to hide it if necessary?
Solved! Go to Solution.