Wings 3D Development Forum
[fixed] Popup menu - selection garbage - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://www.wings3d.com/forum/forumdisplay.php?fid=12)
+---- Forum: Current Version of Wings3D - bug reports (https://www.wings3d.com/forum/forumdisplay.php?fid=18)
+---- Thread: [fixed] Popup menu - selection garbage (/showthread.php?tid=3146)



[fixed] Popup menu - selection garbage - sciroccorics - 10-22-2023

Hi Micheus,

I've tried the patch you propose. It solves the "out of screen" problem, but there is still some strange behavior :

Try to open any popup menu, put your mouse somewhere in the menu to highlight one item, then change your mind and press Escape or click outside the popup to close it. Now, the next time you display the same popup, the previous item is still highlighted and you got a double selection. And if you repeat the process, you may end up with many different items selected simultaneously (cf. the screenshot below). Well this is not very annoying, but this behavior didn't happen in previous releases, I guess that some code line may have changed in the "wings_menu" file.

     


RE: Popup menu out of screen. - micheus - 10-22-2023

Yeah. I noticed that is happening sometimes in v2.3.
I should be looking on it tomorrow.

It's like the selection is cashed. If we move the mouse to an option moving it around (outside) the menu window and do that repeatedly we can get all items selected.
This issue should have another origin, because the fis handles just the window and mouse location.

Moving the mouse over the item options as usually will "turn all of them off".

Thanks for reporting.


Popup menu - selection garbage - micheus - 10-24-2023

sciroccorics, I just updated the wings_menu.beam file at Patches/Fixes for Wings3D session.


I noticed the patch are not reapplied, then you will need to remove the previous one manually.
If you are under Windows OS, you are going to find it at C:\Users\<your profile name>\AppData\Local\Wings3D\2.3\patches



RE: [fixed] Popup menu - selection garbage - sciroccorics - 10-24-2023

Tested and approved !!! Thank you for your reactivity...

I should really find some time to learn erlang. I know, I already wrote this in a previous message, last year, but it would really be great to be able to write some extensions for Wings. I really like this software, and got plenty of ideas for new stuff, but the unknown programming language makes it complicated to start coding.


RE: [fixed] Popup menu - selection garbage - micheus - 10-24-2023

You just need to start. Try something simple to get used to it.
You can use the Programming session to ask questions and the Design & Development to share your plugins.
Be sure someone will try to help you.


RE: [fixed] Popup menu - selection garbage - dgud - 10-25-2023

Read https://learnyousomeerlang.com/content
If you can program it takes a couple of days to learn.


RE: [fixed] Popup menu - selection garbage - sciroccorics - 10-27-2023

Great ! Thanks for the link, Dan. I've got 25 years of C/C++/JavaScript/Python behind me, so a new computer language should not be a pb. I just need to find some time to dive into the project.