Recent

Author Topic: KOL-CE - compact applications for WinCE  (Read 126296 times)

yuriy_sydorov

  • Full Member
  • ***
  • Posts: 158
KOL-CE - compact applications for WinCE
« Reply #30 on: November 12, 2007, 07:14:41 pm »
Hmm, strange...
Try Form^.Close;
Are this errors from compiler or IDE code explorer?

mrmath

  • New Member
  • *
  • Posts: 13
KOL-CE - compact applications for WinCE
« Reply #31 on: November 12, 2007, 07:32:33 pm »
Same error.  I'm seeing them in the message box of the compiler.  I am, of course, using Form1.Close; and Form1^.Close, as my form is called Form1.  When I change it to Form.Close, that works.  See, I'm still feeling stupid!

yuriy_sydorov

  • Full Member
  • ***
  • Posts: 158
KOL-CE - compact applications for WinCE
« Reply #32 on: November 12, 2007, 09:53:46 pm »
Read this: http://wiki.freepascal.org/KOL-CE#IMPORTANT
You need to use Form field to access form's propertied. Like this: Form1.Form.Close;
or simply Form.Close; if the code is placed inside form's method.

Flanter

  • Newbie
  • Posts: 3
KOL-CE - compact applications for WinCE
« Reply #33 on: January 11, 2008, 06:55:49 am »
I have just installed KOL-CE on my computer and I cannot compile my test project because of error that were described here before:

Code: [Select]
Compiling resource D:\Projects\Lazarus\!Packages\KOL\kol\KOL-CE.rc
gcc: Warning: `-x c' after last input file has no effect
gcc: No input files
C:\lazarus\fpc\2.2.0\bin\i386-win32\arm-wince-windres.exe: no resources
D:\Projects\Lazarus\!Packages\KOL\kol\KOL.pas(57901) Error: Error while linking
D:\Projects\Lazarus\!Packages\KOL\kol\KOL.pas(57901) Fatal: There were 1 errors compiling module, stopping


I have added directory

Code: [Select]
C:\lazarus\fpc\2.2.0\bin\i386-win32\

to the PATH system variable, restarted Lazarus several times, but no success - the error is still here. I have checked that PATH is correct by typing in console "set PATH" and it shows that the directory above is in PATH variable.

Is there anything I can do in this situation? I ran out of ideas... :(

yuriy_sydorov

  • Full Member
  • ***
  • Posts: 158
KOL-CE - compact applications for WinCE
« Reply #34 on: January 12, 2008, 02:54:37 pm »
Try to execute arm-wince-windres.exe from command prompt when current directory is C:\
I bet it will not be found.

Flanter

  • Newbie
  • Posts: 3
KOL-CE - compact applications for WinCE
« Reply #35 on: January 13, 2008, 03:13:58 pm »
No, I just tried to launch arm-wince-windres.exe from other directories (including C:\)and it worked, so the PATH variable is correct.

yuriy_sydorov

  • Full Member
  • ***
  • Posts: 158
KOL-CE - compact applications for WinCE
« Reply #36 on: January 14, 2008, 01:11:25 pm »
Maybe windres do not like "!Packages" folder name. Try to rename it to "Packages"...

Flanter

  • Newbie
  • Posts: 3
KOL-CE - compact applications for WinCE
« Reply #37 on: January 14, 2008, 05:06:31 pm »
Yes, it works now! Thank you, Yuri! :)

jabu

  • New Member
  • *
  • Posts: 14
KOL-CE - compact applications for WinCE
« Reply #38 on: January 21, 2008, 01:49:27 am »
Hello Yury,

I have one suggestion with KOL&MCK on WinCE (CePlatform = cpWinCE). I think that devices with WinCE 4.2 core does not have aygshell.dll. When I create simple project in MCK (or KOL) without menu always is called AYGSHELL.SHCreateMenuBar - solution of this allow using KOL&MCK in devices which does not have aygshell.dll - WinCE 4.2 cores in Symbol BarCode scanners.

Is it possible?

Regards

jabu

yuriy_sydorov

  • Full Member
  • ***
  • Posts: 158
KOL-CE - compact applications for WinCE
« Reply #39 on: February 01, 2008, 06:10:48 pm »
KOL-CE supports only PocketPC and Smartphone editions of wince. I will add support for "pure" wince later. You can try to add such support by yourself and send patches to me...

JohnvdWaeter

  • Full Member
  • ***
  • Posts: 171
    • http://www.jvdw.nl
KOL-CE - compact applications for WinCE
« Reply #40 on: February 12, 2008, 10:58:48 am »
This KOL-CE really rocks, but you have to be really careful NOT to drop any LCL components on your form.

That mistake is easily made... I think Yury should describe the steps to take when it happens... when the question pops up what to do with the LCL-component, what happens when the MCK TKolForm dissapears from the form, when things are Locked...

I did manage to resolve, but it took some time to figure out...

John

JohnvdWaeter

  • Full Member
  • ***
  • Posts: 171
    • http://www.jvdw.nl
KOL-CE - compact applications for WinCE
« Reply #41 on: February 12, 2008, 01:36:16 pm »
also:
TKolEditbox seems to forget its TextAlign.

If set to taRight or taCenter, it looks ok at designtime, but it reset to taLeft at runtime.

John

JohnvdWaeter

  • Full Member
  • ***
  • Posts: 171
    • http://www.jvdw.nl
TKolDateTimePicker and dateformat?
« Reply #42 on: February 13, 2008, 09:14:19 am »
Hi,

If I set TKolDateTimePicker to my local dateformat (e.g. Format:='dd-mm-yyyy', I get a couple of squares instead of a date. How to to set the dateformat?

At runtime, DateTimePicker1.DateTimeFormat:='dd-mm-yyyy' gives the same result.


tia!
John

JohnvdWaeter

  • Full Member
  • ***
  • Posts: 171
    • http://www.jvdw.nl
Behaviour of fonts?
« Reply #43 on: February 13, 2008, 02:57:51 pm »
Hmmm, quite active with the KOL-CE package, so more issues arise while at work... ;-)

What about the fonts? If I change the color property of a TKollabels font, the size changes too... is this by design?

tiaa !

John

yuriy_sydorov

  • Full Member
  • ***
  • Posts: 158
RE: Behaviour of fonts?
« Reply #44 on: February 14, 2008, 08:43:44 pm »
By default there is no font set at all. System default font is used. If you want to use fonts you need to set proper font name and font height for TKOLForm. Then you can adjust fonts for child controls.

I suspect that it is a bug in dateformat handling in TKolDateTimePicker. Please submit bug on KOL-CE page at SourceForge.

WinCE does not support text align in single line edot control. Try to use TKOLMemo.

 

TinyPortal © 2005-2018