View Full Version : First Pocket PC test
Richard
11-02-2006, 10:47 PM
Having done all my testing on XP and being pleased with the results, I thought I'd try it on my Pocket PC :)
I copied the (IDE) compiled programs to the PPC and run them. Guess what - no images!
But the system keyboard was showing and when I closed it part of the image appeared. So I started another program (covering the whole screen) and when I closed it and I got the complete image!
Needless to say my program did not work, but then this was the first attempt !sad
PPL on my PPC tells me it's 1.06 lite, but also tells me I need the pro version - which I have. So what didn't I do?
Just in case you need it:
The PPC is a Fujitsu Siemens Loox N560.
Microsoft Windows Mobile Version 5.0
OS 5.1.195 (Build 14928.2.2.0)
Processor PXA270-624MHz
Memory 50.04Mb
The screen is 640x480, but my project is in 320x240 mode. Fortunately the PPC seems to handle this, though it might be the cause of some of my problems.
And I thought I was doing so well...
kornalius
11-03-2006, 02:32 AM
Hi Richard,
You need to connect your PocketPC through ActiveSync, then through the PIDE, click Help -> Register Runtimes and let it register your PocketPC version of PPL.
It could be that your images are not being refreshed at load time. You could issue a Repaint(Image$) to redraw the image when the form is shown (OnShow event).
rickh57
11-03-2006, 04:15 AM
I just purchased and installed 1.06 (pro version). On my PocketPC (a Dell Axim X51v), I chose to install on my SD Card (\SD Card\Program Files\PPL\). I also specified this in the preferences for the PC version of PIDE. However, when choosing Register PPL Runtimes, it fails to register the PocketPC version--the path it asks for is \Program Files\PPL, not the SD Card.
Is there a way to register my PocketPC version running on my SD Card? If not that will be a problem as I do not want to have to install this into main memory.
zehlein
11-03-2006, 07:01 AM
yes it should work. I had the same prob a little time ago. What did help was simply closing PIDE and opening it again before registering the runtimes (after I set the paths correctly for both PC and PPC in PIDE). Hope that helps.
matteo.m
11-03-2006, 07:24 AM
I confirm what zehlein is saying, i have ppl on sd card and i didnt have any problem to register. Just sets the path of ppc installation that you found in th e menu-->file-->preferences.
Richard
11-03-2006, 11:29 AM
Hi Kornalius,
Ok, things have improved. But I have a number of problems, the most major being the bitmaps not showing.
I have attached two images, the first of which is a screen grab of my program runing on my laptop and the second a photo of the same program on my PPC.
I have tried calling "Repaint" from both the FORM OnShow and the image control's OnShow event. In the first case I gave the image control variable and the second the passed hWnd$. But to no effect.
As I said earlier, any action that covers the window will result in the image showing, so it has to be a paint problem. I thought these were fixed in 1.06? Help!
My second irritation (and another reason for the pictures) is the input text area alignment. On this form both text boxes are right aligned and show correctly on the PC. But on the PPC they are left aligned - just what you need on a calculator!
Thanks, Richard.
[br]../../e107_files/public/1162552940_82_FT1278_pc.jpg[br]../../e107_files/public/1162552940_82_FT1278_ppc.jpg
rickh57
11-03-2006, 02:06 PM
After quitting and restarting PIDE, I successfully registered my PocketPC. Thanks for the suggestion!
kornalius
11-03-2006, 03:25 PM
Richard,
It seems there is still a repainting problem with the bitmaps. I will try to fix it for 1.07.
As for the alignment problem, search the forums, we have discussed the fix. It's a Microsoft problem not PPL.
BIGBEN
11-03-2006, 03:58 PM
Try to set multiline property ;)
Richard
11-03-2006, 04:42 PM
Thanks guys,
Unfortunately the Multi-line property stops the "OnChange" and "KeyDown" events, which I need. So I'll put up with the left align. And yes Kornalius, you're right - I should have checked the forum first, sorry.
By the way, the label backgrounds don't get painted either - you get the text on white until it's covered and reshown.
(The program pictured above did not have any labels.)
Richard
11-03-2006, 09:45 PM
YES !amazed YES :! YES :D
PPL Now works on a Pocket PC!
Well done guys and Thank You!
kornalius
11-04-2006, 12:58 AM
We had to use a special trick again because WinCE doesn't repaint the windows properly. Another bug in the MS OS.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.