![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
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: Code:
Button1.Top = Form1.Height - Button1.Height - 5 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 ![]() --- Note: This problem came up in this thread: Working with VGA screens, but without an answer or resolution.
__________________
PC: Windows XP Pro SP2 / Basic4PPC v6.3 PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6 Last edited by willisgt : 02-28-2008 at 05:49 PM. |
|
|||
|
I always leave a bottom margin of 52 pixels for VGA and 23 for QVGA. That seems to solve this problem. This also solves the problem of having horizontal scroll bars of tables hidden behind the menu bar.
Murat
__________________
PC: Laptop CoreDUo, Windows XP SP2 French PPC: TyTN, WM5 French -> iPAQ 214 WM6 French (to diverge or not to diverge,...) |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Text Box Height & Border Around Label | ceaser | Basic4ppc Wishlist | 3 | 05-14-2008 08:07 AM |
| Change Image width and Height | Georg | Questions & Help Needed | 3 | 05-13-2008 03:19 PM |
| Form.Height in Fullscreen | berndgoedecke | Questions & Help Needed | 2 | 01-24-2008 07:10 PM |
| Form.Line color problem - maybe bug? | RandomCoder | Questions & Help Needed | 7 | 07-31-2007 04:47 PM |
| Form size problem on PC? | agraham | Bug Reports | 12 | 07-05-2007 12:00 PM |