Using "setMenu" on a dynamically created menu shows a small empty square if 0 menuitems

0
0

Consider

btnFixity.Call(“setMenu”, cmFixityDropdownMenu);

 

where cmFixityDropdownMenu is a dynamically created Menu with 0 to 4 items.  If there are 0 items in the menu, clicking the button shows a small, approximately 4×4 empty menu when you click the button.  Ideally, it should not show anything at all.

But if I have to workaround the issue, is there a way to call “removeMenu” when there are 0 items, so the empty contextmenu doesn’t display?

OR, is there a way to make the button non-clickable, besides calling .Enabled = false (which changes the text color?)

thx

 

  • You must to post comments
0
0

Hi Andrew,

is there any particular reason why you are not using a MenuButton?
It should include this functionality “out of the box”.

Best regards
Frank

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.