Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Show long menu
Message
 
 
To
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:
01686641
Views:
22
>>>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?

Thank you. I will try it. Btw, this is VFP 9, I have never used FPD (my start with Fox was VFP 3)
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform