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
:)
#2 examples by DenisT
enjoy!
bga
BUT
Is it possible to add items?
...
I not like RCMenu but it's posible to disable a item. Never mind, let's continue with dd list
bga
ok!
I will try now!
Thx Barigazy! Again YOUUUUUUUUU save me!
do you mean to remove items? Will this work for rcmenu also?
You can't disabled item in
You can't disabled item in dropdown list. But you can do this
bga