disable item in RC menu and in dropdownList menu
I have a RCmenu and It's working fine, but I don't know how to disable item in some circumstances
fn createMenu = ( rcMenu rcTest ( menuItem miItem1 "name1" menuItem miItem2 "name2" menuItem miItem3 "name3" seperator menuSep01 menuItem miItem4 "name4" ) if a==0 then miItem1.enabled = false --<<<<<< ??????????????????? >>>>> on miItem1 picked do print "1" ... )
and a dropdownList menu where I want to disable items:
dropdownList FilterSelect pos:[427,21] width:110 height:200 items:#("001", "002", "003", "004") if a == 0 then item "002".enabled = false
Comments
srry
it's my fault! I wanted to call delete item in another function but inside yours it's working!!
i've tried
and first gives error, the second does not delete!
when you use deleteItem
when you use deleteItem method then you need:
deleteItem array index
bga
Barigazy
I get error for deleteitem
>> MAXScript Rollout Handler Exception:
-- No "deleteItem" function for "Map Intances" <<
this is what I've came up with
But how to use this menu in maxscript with rollout? How to add separator, how to detect which item was picked like in standard rcmenu?
Oh, yeeeeeeeeeeeeeees!!!
this is a HUGE HELP, BARIGAZY!
THANK YOUUUUUUUUUUU!
Barigazyyyyyyyyyyyyy! Thank you soooo much!
Help me please to disable items in RCMenu or to add them at a certain level (for example between item 2 and 3)
...
In second example you can see how to disable items.
Select some yellow object and press rightclick on form
bga
...
I told you I not use RCMenu
Better way
bga
:)
This is very cool and much better then RCmenue
#1 examples by DenisT
bga