Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Tutorials
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Tutorials Basic4ppc tutorials

Working with VGA screens

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 02-25-2008, 02:02 AM
Knows the basics
 
Join Date: May 2007
Posts: 64
Awards Showcase
Beta Tester 
Total Awards: 1
Default

In the waiting, my problem comes from the fact that the Width property of a table gives the external width of the control but not the internal net width in which one can place the columns. This is perfectly normal of course. But I have a problem when I try to programmatically fix the the width of the columns of my table, like

Code:
colWidth = Round((Table1.Width)/Table1.ColCount)
For i = 0 To Table1.ColCount-1
    Table1.ColWidth (Table1.ColName(i)) = colWidth
Next
Indeed, when a vertical scroll bar appears, it eats the internal space of the Table and given that the columns' total width is equal to to table width, I also get a horizontal scroll bar. I ignore the exact thickness of these bars but I change the preceding code by

colWidth = Round((Table1.Width-rightMargin)/Table1.ColCount)

and adjust rightMargin by trial and error. But this is not a very elegant solution, since if I do not have a scroll bar, this leaves a small empty border on the left of the table, where the scroll bar is supposed to appear if necessary.

Am I stupid or is this a real aesthetic problem?

I hope that this is better understandable.

Regards,

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
  #12 (permalink)  
Old 02-25-2008, 09:09 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

This is not a VGA problem. Same problem will appear on a regular screen.
I think that the best solution is to set the last column width a little wider than the rest of the columns.
When the scroll bar will appear it will truncate the last column.
Reply With Quote
  #13 (permalink)  
Old 02-25-2008, 10:23 AM
Knows the basics
 
Join Date: May 2007
Posts: 64
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thank you Erel,
Yes, It is not a VGA problem but my efforts to make my program VGA compatible by adjusting different margins (in complement of the sizes of the controls) made this problem more bothering. Your tip is very simple and smart! I will definitely use it.

Best regards,

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
  #14 (permalink)  
Old 03-19-2008, 05:41 PM
Newbie
 
Join Date: Mar 2008
Posts: 6
Default Using mutiple forms


Instead of this code to double the size of everything. I'd like to know if it is possible to have two forms with duplicate control names with different resolutions?
Reply With Quote
  #15 (permalink)  
Old 03-19-2008, 06:25 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

It is not possible to have controls with duplicate names.
Reply With Quote
  #16 (permalink)  
Old 04-26-2008, 05:08 PM
Senior Member
 
Join Date: Dec 2007
Posts: 149
Awards Showcase
Beta Tester Beta Tester 
Total Awards: 2
Default AutoScale-Features in CF 2.0

Hello Erel,
while I zaped through the Help-File of the CF 2.0 I found some AutoScale-Features in CF 2.0 like:
ContainerControl.AutoScaleDimensions-property
ContainerControl.AutoScaleFactor-property
ContainerControl.AutoScaleMode-property
Isn't it possible to solve the VGA-problem with the new CF 2.0 proprties ??

Best regards

berndgoedecke
Reply With Quote
  #17 (permalink)  
Old 04-26-2008, 07:49 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

There are some differences in the way Basic4ppc handles the forms, although these properties may help in a future version.
Reply With Quote
  #18 (permalink)  
Old 06-01-2008, 07:25 AM
enonod's Avatar
Basic4ppc Veteran
 
Join Date: Oct 2007
Location: U.K.
Posts: 324
Default

A bit late but I have only just arrived at this.
Would it be true to say that your snippet produces pixel doubling, and if not used, the VGA screen can have control sizes/positions set to my choice and the result will be true use of a VGA screen with optimized compiling? I get more on screen but would not be QVGA compatible.
Reply With Quote
  #19 (permalink)  
Old 06-01-2008, 03:08 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

This code snippet is not relevant since version 6.30.
You should use Forced QVGA if you want to use double pixel mode. Otherwise you will get true VGA screen on VGA devices.
Reply With Quote
  #20 (permalink)  
Old 11-15-2008, 07:11 PM
Senior Member
 
Join Date: May 2007
Posts: 174
Awards Showcase
Beta Tester 
Total Awards: 1
Default High resulution 3" screen : 480x800

I am currently testing B4PPC V6.50 on my SE XPERIA X1i WM6.1, and .NET CF 3.5 installed.

I just need quick procedures on how to configure the forms and the controls and the compiling for 480x800 display...I have problem displaying on the HEIGHT of the screen

Thanks!
__________________
Rioven

DEVICE: Motorola ATRIX (Dual Core) Android 2.2.1
DESKTOP: Intel Pentium Dual-core E5200; Microsoft® Windows® Vista Home (Basic); Hard Disk:320GB; Memory:4096MB
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiled EXE is not working on HP iPAQ214 mozaharul Questions (Windows Mobile) 25 10-14-2008 11:18 AM
Forelayer not working(?) Cableguy Questions (Windows Mobile) 5 08-16-2008 12:52 PM
working with date gjoisa Questions (Windows Mobile) 3 03-29-2008 10:40 AM
working with FormExDesktop_1.2 Cableguy Questions (Windows Mobile) 20 01-28-2008 07:02 PM
calling the device's "Programs" or "settings" screens HarleyM Questions (Windows Mobile) 0 12-05-2007 03:59 AM


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


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0