Recent

Author Topic: Win mobile X Win CE  (Read 8809 times)

nightrider

  • Full Member
  • ***
  • Posts: 139
Win mobile X Win CE
« on: July 24, 2013, 09:03:09 pm »
I have an application that runs OK under Windows Mobile. I tested it under Windows CE 5(using the same dlls and the executable that I use under windows mobile) and the application screen appears out of the handheld screen. It appears to be in the right of the handheld screen and I only see the left border of the main form.

Another application that is more simple appear minimized when I execute it. And even clicking over it it doesn't maximize.

My someone here explain what is happening with my applications, please?

Greetings from São Paulo - Brazil

Ricardo

bambamns

  • Full Member
  • ***
  • Posts: 226
Re: Win mobile X Win CE
« Reply #1 on: July 25, 2013, 05:55:00 am »
Hi,

Does both devices have the same resolution ?

WinCE has some form "limitations" and you have to make the form size like yours device resolution is.

Did you tried to use HI_RES_AWARE in *.rc file http://forum.lazarus.freepascal.org/index.php/topic,16559.0.html ?
Lazarus 3.6 on Windows 11

nightrider

  • Full Member
  • ***
  • Posts: 139
Re: Win mobile X Win CE
« Reply #2 on: July 25, 2013, 03:03:46 pm »
Normally I test my application in handhelds with resolution 320 X 240. I was informed by the owner of the Win CE 5.0 handheld that it has resolution of 320 X 320. Do this difference explain the troubles? I think it doesn't.

The link http://forum.lazarus.freepascal.org/index.php/topic,16559.0.html directs me to Lazarus project main page.. I don't understand your trial.

Cheers

Ricardo

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Win mobile X Win CE
« Reply #3 on: July 25, 2013, 09:37:29 pm »
For me, that link lead to a thread with subject
how to make WinCE 6.5 640x480 app
in the General subforum
... you might want to search for it there.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

nightrider

  • Full Member
  • ***
  • Posts: 139
Re: Win mobile X Win CE
« Reply #4 on: July 25, 2013, 09:54:16 pm »
Thank you! But I'm not "making WinCE 6.5 640x480". My original questions is about how to make a fully operational 320 X 240 Windows Mobile app runs normally in Windows CE 5.0 and earlier.

Cheers

Ricardo

bambamns

  • Full Member
  • ***
  • Posts: 226
Re: Win mobile X Win CE
« Reply #5 on: August 05, 2013, 06:11:21 am »
Try to include file with this content:
Code: [Select]
HI_RES_AWARE CEUX DISCARDABLE
BEGIN
0x0001
END

in your pas-file like this:
Code: [Select]
{$R file.rc}
Lazarus 3.6 on Windows 11

nightrider

  • Full Member
  • ***
  • Posts: 139
Re: Win mobile X Win CE
« Reply #6 on: August 05, 2013, 02:33:28 pm »
I'm very interested in your suggestion. May you explain a little more?

Should I generate a nem inc file with the code proposed? How should be the exact syntax?

Where exactly I must put {$R file.rc}?

bambamns

  • Full Member
  • ***
  • Posts: 226
Re: Win mobile X Win CE
« Reply #7 on: August 06, 2013, 05:36:49 am »
It is simple :
  • Create simple text file named file.rc
  • Copy following text and paste in the file.rc :
    HI_RES_AWARE CEUX DISCARDABLE
     BEGIN
      0x0001
     END
  • Save file.rc in your project folder
  • Put in your main unit after implementation :
    {$R file.rc}

That's all.
Lazarus 3.6 on Windows 11

nightrider

  • Full Member
  • ***
  • Posts: 139
Re: Win mobile X Win CE
« Reply #8 on: August 06, 2013, 09:57:24 pm »
I put $R just after the line implementation in the unit that is created in lpr file Application.CreateForm.

Should you talk a little bit about the function of tis piece of code, please?

Cheers

Ricardo

bambamns

  • Full Member
  • ***
  • Posts: 226
Re: Win mobile X Win CE
« Reply #9 on: August 07, 2013, 07:59:47 pm »
You can find something about it on http://forum.lazarus.freepascal.org/index.php?topic=7668.0.
That is the place form where I found all I needed.

Lazarus 3.6 on Windows 11

 

TinyPortal © 2005-2018