xavier.batlle
Active member
- Local time
- Today, 21:50
- Joined
- Sep 1, 2023
- Messages
- 265
This example shows how to create a modern, circular pop-up menu (like a "radial menu" or "pie menu") that appears when you right-click in your Microsoft Access form.
Instead of showing the usual boring grey rectangular menu that Access normally displays, it shows a nice round menu with several options arranged in a circle around the mouse cursor.
EDIT:
Ver. 09
The circles and text appeared smaller on some computers because the code used fixed pixel values everywhere, but Windows applies different DPI scaling (display scaling) on different machines. Fixed in ver. 10
Instead of showing the usual boring grey rectangular menu that Access normally displays, it shows a nice round menu with several options arranged in a circle around the mouse cursor.
How it works for the user:
- You right-click on the button.
- A beautiful circular menu instantly appears at the mouse position.
- Each option is shown as a colored circle can contain:
- An icon (picture)
- A short text label (like "SAVE", "EDIT", "PRINT", etc.)
- As you move the mouse over the different circles, the one you're pointing at gets highlighted (bigger and different color).
- In the very center there's a CANCEL button.
- When you click on any option (or the center Cancel), the menu disappears and runs the corresponding action.
Main features:
- You can easily define what options appear and what icons they use.
- You can define the number of options, text & icons to display.
- Optionally It includes a central "Cancel" button so the user can change their mind easily.
- The menu stays open until the user clicks on an option or outside the menu.
Example:
Known issue:
After displaying the new menu, the form's default command bar also appears, so I created a custom one with only the text "menu". I haven't been able to hide the default MS Access form command bar.EDIT:
Ver. 09
The circles and text appeared smaller on some computers because the code used fixed pixel values everywhere, but Windows applies different DPI scaling (display scaling) on different machines. Fixed in ver. 10
Attachments
Last edited: