Quantcast
Viewing all articles
Browse latest Browse all 3768

Sub Menu.Close problem

I discovered a problem of one of my application under Windows. I don’t know if the problem is there for a long time or not as I don’t test (and use) my applications under Windows as much as under MacOS.
Please donwnload the sample problem
SubMenu.xojo_binary_project.zip (7.2 KB)
and run it. It simply creates submenu of menu File - Untitled . After the launch, there’s only one submenu “…”, click button “Make MenuA” and “Make MenuB” and “Make MenuC” some times in any order. → No problem.
Check the box CheckBox1 “Use Close (checked) or RemoveMenuAt (unchecked)” and problems will happen. The submenu are not removed. This problem appears only under Windows, not under MacOS.
Note: Label1 display the name of the submenu clicked, its index and the count of submenus.
Is it a bug or is it the way Menu.Close is supposed to work?

No need to use the others CheckBox 2 and 3, I added them to understand the different ways to manage submenu as explained in the doc and in the Xojo example project “Open Recent Menu”.

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 3768

Trending Articles