Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Show long menu
Message
From
26/05/2023 15:51:31
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
Miscellaneous
Thread ID:
01686632
Message ID:
01686640
Views:
29
>>Hi,
>>
>>I have a pop-up menu on click of the bottom button of a form. The menu is long (about 12 items). All items of the menu show on most computers. But one customer does not want to increase the resolution of the screen and he is looking for another solution.
>>Is there a way to show this menu in another way, so that all items are visible?
>>
>>TIA
>
>Is there a way to determine the current screen size and the size (height) of a pop-up menu?
>My thinking: if I know that the current screen size won't let the user to see the entire menu, I could start (display) the menu not from the button where the user clicks (default behavior) but higher. IMHO, it is nice when the menu starts right at the button where user clicks. But, alternatively, for this customer (or maybe for some others), to display the menu from, say, the middle of the form.
>Is this possible/practical?

There should be trouble only if the vertical space is insufficient. If there's not enough space below, the menu should unfold upwards. Just tried this with this browser (waterfox in my case, but since menus are a system level GUI thing practically everywhere, you can try it with any other app): moved the window most of the way down, so that there were just a few pixels below the menu and toolbars, and opened the largest branch of the menu. It went upwards. So if the vertical size of the menu branch in case is larger than sysmetric(2) (or whatever the parameter), then... the menu system should be intelligent enough to draw scroll buttons on top and/or bottom of it. I hink I've even seen this in fox... but where, in FPD2.6?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform