Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Tutorials
Home Register FAQ Members List 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, 01:02 AM
Knows the basics
 
Join Date: May 2007
Posts: 63
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, 08:09 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,849
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, 09:23 AM
Knows the basics
 
Join Date: May 2007
Posts: 63
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, 04: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, 05:25 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,849
Default

It is not possible to have controls with duplicate names.
Reply With Quote
  #16 (permalink)  
Old 04-26-2008, 04:08 PM
Knows the basics
 
Join Date: Dec 2007
Posts: 66
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, 06:49 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,849
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, 06:25 AM
Knows the basics
 
Join Date: Oct 2007
Posts: 90
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, 02:08 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,849
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
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
Why is my drawer.New2() not working? willisgt Questions & Help Needed 3 06-29-2008 10:27 AM
working with date gjoisa Questions & Help Needed 3 03-29-2008 09:40 AM
Working ipac METER??? bGoody_iPAC_rx1950PPC Questions & Help Needed 2 03-20-2008 07:02 AM
Working with screen resolutions Nycran Questions & Help Needed 25 02-13-2008 02:04 PM
working with FormExDesktop_1.2 Cableguy Questions & Help Needed 20 01-28-2008 06:02 PM


All times are GMT. The time now is 01:11 AM.


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