![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Try:
Code:
bList.New2("Form1", 0, Form1.Height - 210, 240, 140)
__________________
Basic4ppc reference list |
|
||||
|
Hello Erel,
i have tried it, but without success. Then i tried Code:
bList.New2("Form1", 0,Form1.Height-180, 240, 140)
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. |
|
||||
|
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 |
|
||||
|
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 |
|
||||
|
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. |
|
||||
|
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 |
|
||||
|
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. |
|
||||
|
Try this code :
Code:
If Form1.Height<320Then
blist.New2("Form1",0,110,240,140)
Else
blist.New2("Form1",0,110,320,140)
EndIf
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 |
|
||||
|
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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |