Basic4ppc - Windows Mobile Development  

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

Basic4ppc Wishlist Missing any feature?


Supporting multiple resolutions


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-14-2007, 06:02 PM
Newbie
 
Join Date: Jul 2007
Posts: 9
Default Supporting multiple resolutions

It might be interesting to support multiple screen sizes and orientations with one program and not be forced to position controls in code.

Compiled applications seem to be working pretty nicely on a CE5.x device but these often have unusual screen sizes.

I'd like to create Form1 for a screen size like 640x480. Position and name all the controls and set font sizes, using the form editor.

Then I'd like to 'clone' Form1 to target a different screen size. All the controls would keep the original names so no code changes are necessary. Perhaps there needs to be a way to map the Form1 identifer in code to the Form1_260x320 clone that is activated based on screen size.

Form1_260x320 could be edited directly, the layout and fonts changed to fit the screen and it would just be swapped in at run time. Same thing would happen with orientation changes, just activate a different version of Form1.

It should be possible to place additional controls on largers screens, or additional columns in tables, so we can use the space smartly. This could also make it easy to support virtual screen sizes with programs like Nyditot.
Reply With Quote
  #2 (permalink)  
Old 07-23-2007, 07:32 PM
Junior Member
 
Join Date: Apr 2007
Posts: 42
Send a message via Yahoo to mwaite
Default

I agree wholeheartedly.

I have a program that supports both portrait and landscape for a 240x320 display. The effort to reposition everything from portrait to landscape was huge considering the number of objects I have hidden on the forms.

Now someone has come to me with my app running on a 240x240 display and I'm terribly disheartened by the amount of work it's going to take to create a new supported screen size.
__________________
Regards,
Mike

PPC Cingular 8525 WM5 4Gb SD
Reply With Quote
  #3 (permalink)  
Old 07-24-2007, 12:34 PM
RandomCoder's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: UK
Posts: 485
Awards Showcase
Beta Tester 
Total Awards: 1
Default

To get around this problem I add and position most controls during run time.
I often position one control relative to the Form.Height and Form.Width and then position all other controls relative to this.

Regards,
RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD.
Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD.

"Defeat never comes to any man until he admits it."Josephus Daniels
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
Multiple Undo/Redo Rioven Questions & Help Needed 2 05-15-2008 09:41 AM
Multiple Listviews tsteward Questions & Help Needed 2 04-20-2008 11:16 AM
Working with screen resolutions Nycran Questions & Help Needed 25 02-13-2008 03:04 PM
Multiple Instances of an application Louis Questions & Help Needed 1 12-23-2007 06:20 AM
How to play multiple sounds at once? justdo Questions & Help Needed 2 09-24-2007 04:59 AM


All times are GMT. The time now is 10:53 AM.


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