05-26-2023, 09:26 PM
Something that can be then improved is the context menu be shown the options correctly.
It has long time I noticed that we only get access to the menu if we are over a color square. but the only option that would require this is the Edit. For the others if we invoke the menu outside the square it should pop-up.
Since you are playing around on it and learning about menus, maybe you would be interested to fix this behaviour.
For that the menu creation will probably need to be broke into two functions: one that include the Edit and other that build everything else depending on where the RMB was clicked (on color square or client area).
What do you think?
It has long time I noticed that we only get access to the menu if we are over a color square. but the only option that would require this is the Edit. For the others if we invoke the menu outside the square it should pop-up.
Since you are playing around on it and learning about menus, maybe you would be interested to fix this behaviour.
For that the menu creation will probably need to be broke into two functions: one that include the Edit and other that build everything else depending on where the RMB was clicked (on color square or client area).
What do you think?