View Single Post
Old 03-24-2005, 01:56 PM   #2
Mark Rejhon
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: Bold
Carrier: Rogers
Posts: 4,870
Default

If you need to use a co-ordinate system, there's many workarounds if you're willing to do a little bit of extra programming...

Try developing some kind of auto-aligning system, with top/bottom/left/center/right alignment flags. That way, you can specify a graphics item to be aligned with the bottom of the screen.

Another method is to use a virtual co-ordinate system, like 1000 by 1000 pixels, and scale gracefully to the BlackBerry resolution. So Pixel position (500,500) translates to the center of the screen.

One of the things I developed with my home theater career, was a virtual co-ordinate system for resolution-independent user interface displays, so I am pretty experienced with using co-ordinates gracefully on displays of unpredictable resolution...
__________________
Thanks,
Mark Rejhon
Author of XMPP extension XEP-0301:
www.xmpp.org/extensions/xep-0301.html - specification
www.realjabber.org - open source
Offline