newbie question on screen size

K

Keith R

I just got VS2003, and want to program a small time-study app for an Ipaq
2215. Eventually it might be nice to make it available (free) for other
people (with other PDAs), but I'm less worried about that than I am about
getting it working on my own PDA, for my use.

I know the overall screen size of the 2215, but when my app runs, it will
need the built-in (or any) touch keyboard (SIP?) visible at all times, so
that reduces my remaining screen size, as does the upper and lower toolbars
(although maybe I don't need a lower toolbar inside my app? not sure). I
don't want to have scrollbars in my app, everything needs to be
visible/accessible for rapid data entry.

Basically, I RTFM'd (searched the help files using my limited knowledge of
the terminology), and I can't figure out a better way to determine the
desired size of my form than just testing, altering, and testing again.
Seems like there must me a better way, hence this post before I spend a lot
of time doing that.

Starting with a known screen size, how do I determine the height of the SIP
and upper toolbar (and maybe lower toolbar) on my Ipaq2215 so I can just
start working the program/code, instead of spending time figuring out the
size it needs to be? My worst fear would be to do a lot of work, then find
out that my form is too big and have to go re-work controls, font sizes,
etc (I learned that lesson the hard way on a Winapps form)

Much thanks in advance,
Keith R
 
M

Maarten Struys

The height of the SIP can be determined as follows
(assuming you dragged an InputPanel control to your app:

int height = inputPanel1.Bounds.Height;

The height of a toolbar works similar:

int height = toolBar1.Bounds.Height;

Regards,
Maarten Struys
PTS Software bv
 
K

Keith R

Excellent, this is very helpful. I'll write a test app just to identify the
heights using these properties, then create my real form using the amount
of space "left over" as it's target dimensions.
Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top