Recent

Author Topic: KOL-CE and WinCE. Basic application configuration  (Read 11359 times)

Dibo

  • Hero Member
  • *****
  • Posts: 1048
KOL-CE and WinCE. Basic application configuration
« on: January 20, 2009, 08:00:38 pm »
Hi,
I'm writing my first application for WinCE, so I'm total lame.
I'm comparing diference beetwen KOL-CE and WinCE and can't decide. KOL-CE is fast and small exe, but using LCL i have better compatibility with huge lazarus components library. So I have few questions which I not found on wiki page and forum:
1. Can I safety mix KOL-CE project with lazarus LCL components (mostly dynamically in code) like TCP/IP?

2. This is simple project using LCL:
(http://img84.imageshack.us/img84/9738/screenshot21vb0.png)
Why "Menu1" and "Menu2" looks like... strained and low quality JPG? Can I fix this? I have Samsung i780 320x320 px, maybe this is the reason?

3. And this is simple project using KOL-CE:
(http://img84.imageshack.us/img84/2459/screenshot11cy2.png)
a). How can I hide form header and show "OK" button like in LCL project?
b). This same problem with "Menu1" and "Menu2" quality

4. Everywhere on the forum I found information, that KOL-CE exe size is ~30 kB and LCL 1MB. But my KOL exe (only form with button) have 190kB and LCL = 1.9 MB, after strip of course. I have KOL-CE 2.80.2 and lazarus snapshot Lazarus-0.9.27-18282-fpc-2.2.3-20090114-win32

Regards

oranke

  • New member
  • *
  • Posts: 8
    • Really poor developer...
Re: KOL-CE and WinCE. Basic application configuration
« Reply #1 on: January 28, 2009, 07:18:46 am »
4. Kol size.

Did you turn off the "-g" optoion?

(http://forum.lazarus.freepascal.org/index.php?action=dlattach;topic=6186.0;attach=27;image)

Check "Project" -> "Compiler options" -> "Linking" and uncheck the "Generate Debugging info for GDB" :)
« Last Edit: January 28, 2009, 01:09:51 pm by oranke »

oranke

  • New member
  • *
  • Posts: 8
    • Really poor developer...
Re: KOL-CE and WinCE. Basic application configuration
« Reply #2 on: January 28, 2009, 12:40:42 pm »
2. Menu font resampling.

Create HiRes.rc text file that contains followed code.


HI_RES_AWARE CEUX {1}


(I'll attach it.)

and link this file to your project like this.

unit1.pas

......
implementation
......
{$R HiRes.rc}
......



Before... (Runs on WM6.0 - 320*320 Korean emulation image)
(http://forum.lazarus.freepascal.org/index.php?action=dlattach;topic=6186.0;attach=35;image)

After...
(http://forum.lazarus.freepascal.org/index.php?action=dlattach;topic=6186.0;attach=37;image)



3. Form caption and close button of KOL-CE appl.

Never!! modify main form's position or size in your code!!
Just set to "True" the "defaultSize" / "defaultPosition" properties or DO NOTHING!

Good luck~~ :)
« Last Edit: January 28, 2009, 01:21:21 pm by oranke »

jpremor

  • New Member
  • *
  • Posts: 11
Re: KOL-CE and WinCE. Basic application configuration
« Reply #3 on: February 19, 2010, 07:09:24 pm »
there is a answer to the first question?
It is possible mix lcl and kol?
U tried to use inet package with kol but without success. At least it appears that the events is not happening.

tnks

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: KOL-CE and WinCE. Basic application configuration
« Reply #4 on: February 20, 2010, 02:11:34 pm »
Yes you can mix this components. I had this same problem. There is a solution:
http://forum.lazarus.freepascal.org/index.php/topic,8210.msg39495.html#msg39495

jpremor

  • New Member
  • *
  • Posts: 11
Re: KOL-CE and WinCE. Basic application configuration
« Reply #5 on: February 22, 2010, 07:26:32 pm »
Ow, thanks!! I have it working now!!

 

TinyPortal © 2005-2018