gabdube / native-windows-gui

A light windows GUI toolkit for rust
https://gabdube.github.io/native-windows-gui/
MIT License
1.96k stars 127 forks source link

Dynamically edit existing menu items #290

Closed eugenesvk closed 5 months ago

eugenesvk commented 5 months ago

Let's say I have a tray icon with 3 menu items.

I've got from the docs and your message_bank_d example how to dynamically add a 4th MenuItem to the existing Menu, but what if I'd like to, say, change the text of the second menu item in an existing menu (or maybe update an icon tooltip)

How would I edit existing menu items that are specified in the original GUI struct?

Thanks!

eugenesvk commented 5 months ago

Dupe https://github.com/gabdube/native-windows-gui/issues/275