Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Problem with VGA form.Height


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-28-2008, 05:46 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 154
Default Problem with VGA form.Height

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
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



---
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.
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 09:16 PM
Knows the basics
 
Join Date: May 2007
Posts: 63
Default

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,...)
Reply With Quote
  #3 (permalink)  
Old 03-01-2008, 06:57 AM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 154
Default

It does indeed solve the problem. Without any other method for determining the height of the bar, hardcoding the value seems the only way to go.

But I *really* hate hardcoded values. It reminds me of COBOL. (Oh, shucks, did I just use that word here?)


Gary

__________________
PC: Windows XP Pro SP2 / Basic4PPC v6.3
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 11:34 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0