Redraw/update a custom menu item

Hello Everyone,

Sorry, I'm just too new for this. 

For data field settings, I have a CustomMenu. In its initialize(), I popupate it with CustomMenuItems. Everything is handled in the "function draw(dc)" of the CustomMenuItem.

When onSelect(item) gets called (user select menu item), I would like to update (redraw) one or several of these CustomMenuItems. How do I do that? Could I call "function draw(dc)" directly somehow?

(I know, for a simple Menu2, I can call setLabel and setSubLabel, bit this is different.)

Thank you in advance!

Top Replies

All Replies

  • My apologies Ladies and Gents, the issue has solved itself.

    I learned accidentally that each and every CustomMenuItem updates automatically when onSelect fires. I just change the variables (that "function draw(dc)" of CustomMenuItem uses to draw the menu item) and everything gets updated automatically.

    Sorry for wasting bits on this forum for such an obvious scenario.