I'm modifying one of my applications to run on a VGA device. So far, things are going very well (thanks to everyone who suffered through the initial learning phase on VGA screens), but I've run into a problem.
My program places controls based on the height and width of the form, so it can adjust itself to landscape or portrait orientation on a variety of screen sizes.
When I place the controls at the bottom of the screen, I check the form.Height and place the controls accordingly. Problem is, the controls are mostly hidden behind the menu bar at the bottom. The top of a button placed (see below) at the bottom is just peeking out from behind the bar.
I'm doing something similar to:
Yes, the SIP is hidden/collapsed.
I imagine I can find some magic number to adjust the 'top' values by, but that defeats the purpose of all the code I've written to make these forms adjust to the various screen resolutions and orientations.
Is there some magic way to get the height of the menu bar?
Gary
:sign0085:
---
Note: This problem came up in this thread: http://www.b4x.com/forum/showthread.php?t=1723&highlight=menu, but without an answer or resolution.
My program places controls based on the height and width of the form, so it can adjust itself to landscape or portrait orientation on a variety of screen sizes.
When I place the controls at the bottom of the screen, I check the form.Height and place the controls accordingly. Problem is, the controls are mostly hidden behind the menu bar at the bottom. The top of a button placed (see below) at the bottom is just peeking out from behind the bar.
I'm doing something similar to:
B4X:
Button1.Top = Form1.Height - Button1.Height - 5
Yes, the SIP is hidden/collapsed.
I imagine I can find some magic number to adjust the 'top' values by, but that defeats the purpose of all the code I've written to make these forms adjust to the various screen resolutions and orientations.
Is there some magic way to get the height of the menu bar?
Gary
:sign0085:
---
Note: This problem came up in this thread: http://www.b4x.com/forum/showthread.php?t=1723&highlight=menu, but without an answer or resolution.
Last edited: