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.


Different screen sizes


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-22-2008, 11:55 AM
Gex Gex is offline
Newbie
 
Join Date: Jan 2008
Posts: 5
Default Different screen sizes

Hello! Maybe i missed something, but i dont understand - can i write 1 version of program for all screen sizes, or i have to write 1 version for 1 size? I have 320x240 screen and wrote program for it but another man have 240x240 screen and he can see only a piece of full program
Reply With Quote
  #2 (permalink)  
Old 01-22-2008, 01:39 PM
Knows the basics
 
Join Date: May 2007
Posts: 63
Default

Hi,
This is a very frequent question. You can write one version of your program for different screen sizes, and automatically rearrange your forms in function of the screen size/orientation change. You must do this arrangement programmatically (check this forum about the Formlib library that has methods for detecting changes of the size of the forms as a consequence of an orientation change for example).

It would be really nice to have some facilities in Basic4PPC for managing at least the most standard screen sizes (yes, I am quite a lazy person, sorry Erel :-) ).

I hope this helps.

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 01-22-2008, 02:55 PM
Gex Gex is offline
Newbie
 
Join Date: Jan 2008
Posts: 5
Default

oh, really frequent? sorry, I should be more attentive. anyway, thank you yildi! to rearrange my forms i must rearrange my code... all code... omg...
Reply With Quote
  #4 (permalink)  
Old 01-22-2008, 04:37 PM
Gex Gex is offline
Newbie
 
Join Date: Jan 2008
Posts: 5
Default

err... i have one more question. eg Form.Height returns height of screen i've made in the designer. FormLib have a Resize Event what occurs when the screen size CHANGES, but how can i get the size of the SCREEN, not the size of the FORM?
Reply With Quote
  #5 (permalink)  
Old 01-23-2008, 10:46 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,780
Default

On the device forms are always resized to the size of the screen.
So you could use Form.Width / Form.Height.
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
Screen Capture App sahoopes Share Your Creations 3 04-17-2008 07:05 AM
How to clear the screen ? gjoisa Questions & Help Needed 1 03-11-2008 04:50 PM
Change Control positions and sizes after compile. burd27 Questions & Help Needed 9 03-03-2008 02:44 PM
Desktop: Forms with differnet sizes sloopa Questions & Help Needed 2 05-06-2007 04:41 PM


All times are GMT. The time now is 09:06 PM.


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