Minitoolbar activate ok and apply on Selection

Minitoolbar activate ok and apply on Selection

Anonymous
Not applicable
410 Views
2 Replies
Message 1 of 3

Minitoolbar activate ok and apply on Selection

Anonymous
Not applicable

I am looking for a way to have the ok and apply button gray out until there is a valid selection made in the UI. How can we control if those 2 buttons are active or not?

 

0 Likes
411 Views
2 Replies
Replies (2)
Message 2 of 3

xiaodong_liang
Autodesk Support
Autodesk Support
Hi,

I do not see a way to disable the Apply button. But I think two options may help you:

either: your application does nothing in the event MiniToolbar.OnApply when no any object is selected
or: control the visibility of the Apply button by the bool property MiniToolbar.ShowApply
0 Likes
Message 3 of 3

xiaodong_liang
Autodesk Support
Autodesk Support
Sorry, I even missed the property MiniToolbar.EnableApply .
0 Likes