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.


Problem with blist and WVGA


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-25-2010, 09:00 AM
schimanski's Avatar
Senior Member
 
Join Date: Oct 2007
Location: Germany
Posts: 157
Default Problem with blist and WVGA

Hello

I have a problem with the position of the blist under WVGA (480x800 pixel). When I compile with Autoscale, the position under QVGA and VGA are correct. Under WVGA, the blist is higher up from the bottom:

Code:
 blist.New2("Form1",0,110,240,140)
When i use ...("Form1",0,110*ScreenScaleY,240,140), the list is to below. What should i do to use the blist under every solution always with the same distance from the bottom?

Thanks for help!!!
__________________
schimanski
--------------------------------------
Device: Qtek S200, Eten Glofiish X600
Desktop: Asus Eee PC
Reply With Quote
  #2 (permalink)  
Old 02-25-2010, 06:11 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 4,831
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Try:
Code:
bList.New2("Form1", 0, Form1.Height - 210, 240, 140)
__________________
Basic4ppc reference list
Reply With Quote
  #3 (permalink)  
Old 02-26-2010, 08:29 AM
schimanski's Avatar
Senior Member
 
Join Date: Oct 2007
Location: Germany
Posts: 157
Default

Hello Erel,

i have tried it, but without success. Then i tried

Code:
bList.New2("Form1", 0,Form1.Height-180, 240, 140)
(The button on the bottom is 40 pixel heigh, the blist 140 pixel (=180)).

This one runs on Desktop and WVGA, but on VGA the blist is to high.


I have printed the pixels fom the different solutions:

Desktop (Screensize 240x340)
Form1.height=288
blist.height=140
btnBottom.height=40
ScreenScaleY=1

VPA Compact GPS (QVGA 240x320)
Form1.height=268
blist.height=140
btnBottom.height=40
ScreenScaleY=1

HTC Touch Diamond 1 (VGA 480x640)
Form1.height=268
blist.height=140
btnBottom.height=80
ScreenScaleY=2

HTC Touch Diamond 2 (WVGA 480x800)
Form1.height=348
blist.height=140
btnBottom.height=100
ScreenScaleY=2 (?????????????)

Thanks for help...
__________________
schimanski
--------------------------------------
Device: Qtek S200, Eten Glofiish X600
Desktop: Asus Eee PC

Last edited by schimanski : 02-26-2010 at 11:21 AM.
Reply With Quote
  #4 (permalink)  
Old 02-26-2010, 11:54 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 4,831
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Did you compile your program with AutoScale?

Note that the ratio between the height and width of WVGA is different than the ratio of VGA and QVGA. So you cannot get the exact same layout.
__________________
Basic4ppc reference list
Reply With Quote
  #5 (permalink)  
Old 02-27-2010, 02:44 PM
schimanski's Avatar
Senior Member
 
Join Date: Oct 2007
Location: Germany
Posts: 157
Default

Hello Erel!

I have compiled with Autoscale. Is ScreenScale the ratio between weight and height? I thought, that screenscaleY is the multiple from the height of the QVGA. But then, screenscaleY on WVGA must be 2.5 and not 2.

Thanks for your help, I will going to test something else...
__________________
schimanski
--------------------------------------
Device: Qtek S200, Eten Glofiish X600
Desktop: Asus Eee PC
Reply With Quote
  #6 (permalink)  
Old 02-27-2010, 04:05 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 3,839
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

ScreenScale is based on the nominal dpi (dots per inch) of the display compared to that of a QVGA screen. QVGA devices have a dpi of 96. VGA and WVGA usually have a dpi of 192. So you will always see a ScreenScale of either 1 on QVGA devices and 2 on VGA or WVGA devices. Some Smartphones with other sizes of screen may have different dpis and so different ScreenScale values.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #7 (permalink)  
Old 02-27-2010, 05:28 PM
schimanski's Avatar
Senior Member
 
Join Date: Oct 2007
Location: Germany
Posts: 157
Default

Jo, I see....

I have now tried everything to show the blist just over the buttons on the buttom (40 pixel height under QVGA) , but no result.

Is it not possible to show the blist just over the buttons under every screensolution????
__________________
schimanski
--------------------------------------
Device: Qtek S200, Eten Glofiish X600
Desktop: Asus Eee PC
Reply With Quote
  #8 (permalink)  
Old 02-27-2010, 05:39 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 3,839
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I don't understand the problem. Why can't you read the height of the form and adjust the size and position of the Blist accordingly?
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #9 (permalink)  
Old 02-27-2010, 06:02 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 1,797
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Try this code :
Code:

If Form1.Height<320Then
blist.New2("Form1",0,110,240,140)
Else
blist.New2("Form1",0,110,320,140)
EndIf
You can adapt the values for each screen.

ScreenScaleY is the same for WVGA and VGA screens. You just 80 have pixels more space on the WVGA screen.
Autoscale will not stretch the controls nor change their Top parameter.
It's up to you to handle this extra space.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #10 (permalink)  
Old 02-27-2010, 07:30 PM
schimanski's Avatar
Senior Member
 
Join Date: Oct 2007
Location: Germany
Posts: 157
Default

Yes, thanks a lot!

I handled it like Klaus said. It's not so much work as i thought before.

I hope, that the producers of the pocket-PCs are carefully agree a standard of screensolution.
__________________
schimanski
--------------------------------------
Device: Qtek S200, Eten Glofiish X600
Desktop: Asus Eee PC
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
bList v0.9 (beta) released Erel Official Updates 85 05-07-2010 12:14 PM
bList Image Resize and Transparency IansResearch Questions & Help Needed 7 02-04-2010 07:16 AM
bList J12345T Questions & Help Needed 4 01-03-2010 04:34 AM
bList v0.9 (beta) released Erel Announcements 0 09-20-2009 05:26 PM
WVGA Issue JesseW Questions & Help Needed 9 12-01-2008 05:25 AM


All times are GMT. The time now is 12:02 AM.


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