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 qvga


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-02-2008, 10:17 AM
Knows the basics
 
Join Date: Sep 2008
Location: Brisbane, Australia
Posts: 98
Default problem with qvga

I just got myself a HTC Touch Pro.

It's screen resolution is 640x480 and boy does it look good.

I have written an app in B4PPC that keeps track of my taxi work.

I have 2 custom dll libraries that I reference in the app.

The Autocomplete combo box works just like it should.

The SIP (Soft Input Panel) works just right on the 320x240 screen of my old Imate Jasjam.

The sip buttons have a border around them and they line up just right.

On the Touch pro they no longer have borders around each individual key. Also it almost looks like 3d. The keypresses work - it's the appearance that's off.

Attached is the dll and the C# code. The B4PPC app is compiled as Force QVGA and the dll created by the compiler is copied to the working folder on my Touch Pro.

Can anyone tell me what I need to do to fix this?

regards, Ricky

P.S I need to add some more functionality but they won't affect this issue.
Attached Files
File Type: zip SIPc.zip (10.1 KB, 3 views)

Last edited by Ricky D : 11-02-2008 at 10:19 AM. Reason: yes i did compile it Forced QVGA
Reply With Quote
  #2 (permalink)  
Old 11-02-2008, 02:39 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,900
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Ricky D View Post
ICan anyone tell me what I need to do to fix this?P.S
It is a victim of the pixel doubling on the higher resolution display. I would make a small SIP of just 2 keys to begin with and experiment with horizontal sizing and placing to understand what is going on, then I would do the same with vertical size and spacing. Then you might come up with a layout that works on both display sizes.
Reply With Quote
  #3 (permalink)  
Old 11-03-2008, 07:10 AM
Knows the basics
 
Join Date: Sep 2008
Location: Brisbane, Australia
Posts: 98
Default thanks mate

Yep that was it.

I've found that in ShadowKey the width and height need to be the same as the linklabel passed to it for High res whereas Low res requires them to be +2

Also when I create the KeyLabel control the one immediately to the right of another needs to have it's left at +22 for hi res and +20 for low res.

I have created another parameter to the SIPc constructor - int Resolution where 0 is Low res and 1 is Hi res.

This then gets passed to ShadowKey in it's constructor.

I'm glad there isn't a huge amount of changes needed.

How do I tell in B4PPC what resolution it's running under? At the moment I'd need to compile 2 different version of the app depending on which device it's running on. I'll use my Imate Jasjam as a backup device in case the Touch pro goes belly up for any reason.

regards, Ricky
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
Force QVGA Compile BooBoo Mr_Gee Beta Versions 13 09-17-2008 09:14 AM
Programm in VGA + QVGA ? Paulsche German Forum 0 09-11-2008 03:09 PM
Force QVGA JamesC Questions & Help Needed 2 07-20-2008 11:18 AM
QVGA with version 6.3 Georg Questions & Help Needed 3 05-15-2008 06:26 PM
VGA and QVGA alfcen Basic4ppc Wishlist 4 02-05-2008 07:37 PM


All times are GMT. The time now is 05:47 PM.


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