i´m new here and not familar with basic4ppc.
I immediately noticed a problem with the font size on my htc hd2 (running a 800x480px resolution).
I have defined the resolution manually (Designer>Form>Tools>Screen Size).
Inside the designer everything looks fine, but on my ppc the font size is much to big.
I have placed my labels in WVGA (height=800, width=480).
Is File>Compile>Device EXE (Alt+1) the "normal mode". I have used this, but the labels are much to big (maybe 2 times...)
Ho sorry, It's the font-size? (I didn't well read) Yes it's different between QVGA and WVGA you have to change simply the font-size from 8 to 4 and on your device it'll be "8" like on QVGA but on a QVGA it'll be 4 so very small...
You can write a code who check the screen resolution and set the appropriate font size...
Ho sorry, It's the font-size? (I didn't well read) Yes it's different between QVGA and WVGA you have to change simply the font-size from 8 to 4 and on your device it'll be "8" like on QVGA but on a QVGA it'll be 4 so very small...
You can write a code who check the screen resolution and set the appropriate font size...
Sub wvga
names() = GetControls("form1")
For i = 0 To ArrayLen(names())-1
If ControlType(names(i)) = "Button" OR ControlType(names(i)) = "Label" Then
Control(names(i)).fontsize=Control(names(i)).fontsize/2
End If
Next
End Sub
The font is smaller, i think in the right size - but now my positions are bad.
I have 4 Labels:
left | [Label description] [Value] [Label description] [Value] | right
In the designer right is right, but on the device the logical right is ~5 mm away from the physical right...