Difference between revisions of "KOL-CE"

From Free Pascal wiki
Jump to navigationJump to search
Line 29: Line 29:
  
 
== Creating MCK project ==
 
== Creating MCK project ==
 +
# Start Lazarus and create new Application using '''File > New...''' menu item.
 +
# DO NOT place any components on the form at this stage. Choose '''File > Save All''' and select the destination folder for your project. Note that ALL FILES of your project ALWAYS HAVE TO BE PLACED IN THE SAME FOLDER! You may change the name of the form's unit name, but do not change the name of the project file. Leave project name default as <tt>project1.lpi</tt>
 +
# Place the <tt>'''TKOLProject'''</tt> component onto the form.
 +
# Set the name of the resulting MCK project by changing the <tt>'''ProjectDest'''</tt> property (path MUST NOT be included). If you type MySuperKOLProj, for instance, then the resulting MCK project will be named <tt>MySuperKOLProj.lpi</tt>. The EXE file's name will be (as you might have guessed already) <tt>MySuperKOLProj.exe</tt>.
 +
# Drop the <tt>'''TKOLForm'''</tt> component onto the form.
 +
# Save current project.
 +
# Open the resulting project which you specified in <tt>'''ProjectDest'''</tt> property (it should be found in the same directory). Delete all <tt>project1.*</tt> files - these files are no longer necessary.
 +
# Play with your new KOL/MCK Project (adjust Parameters, drop TKOL... components, compile, run, debug, etc.) Enjoy!
  
 
== Contacts ==
 
== Contacts ==
 
Report bugs, submit patches and ask questions at project's page at SourceForge: http://sourceforge.net/projects/kol-ce/
 
Report bugs, submit patches and ask questions at project's page at SourceForge: http://sourceforge.net/projects/kol-ce/

Revision as of 20:43, 18 October 2007

Introduction

KOL-CE is Free Pascal/Lazarus port of KOL&MCK devloped by Vladimir Kladov (http://kolmck.net).

KOL-CE allows to create very compact Windows GUI applications (starting from ~40KB executable for project with empty form).

Initially KOL-CE was planned as KOL port for WinCE only. But later I decided to keep Win32 functionality and made it work with FPC smoothly. Original KOL is targeted for Delphi and does not work with FPC very well. Original MCK can not be used with Lazarus at all.

Requirements

  • Free Pascal compiler 2.2.0 or later for Win32.
  • arm-wince cross compiler 2.2.0 or later for Win32 (for WinCE development only).
  • Lazarus 0.9.23 or later for Win32.

Supported targets

  • All 32-bit Windows: from Windows 95 to Vista.
  • Windows CE based PocketPC and Smatphones.

Download

Get the latest KOL-CE sources from svn using this link: https://kol-ce.svn.sourceforge.net/svnroot/kol-ce/trunk

Installation

MCK package
  1. Download KOL-CE sources and put them on some folder on your filesystem.
  2. Run Lazarus and choose Components > Load package file menu item. Then navigate to MCK folder and choose MirrorKOLPackage.lpk file.
  3. Package window will apper. Press Install button.
  4. Lazarus will compile MCK package and IDE will be restarted.
  5. After restart KOL tab will appear on components palette.

Upgrade is very simple as well. Just overwrite KOL-CE sources with new version, open MCK package and press Install button to recompile the package.

Creating MCK project

  1. Start Lazarus and create new Application using File > New... menu item.
  2. DO NOT place any components on the form at this stage. Choose File > Save All and select the destination folder for your project. Note that ALL FILES of your project ALWAYS HAVE TO BE PLACED IN THE SAME FOLDER! You may change the name of the form's unit name, but do not change the name of the project file. Leave project name default as project1.lpi
  3. Place the TKOLProject component onto the form.
  4. Set the name of the resulting MCK project by changing the ProjectDest property (path MUST NOT be included). If you type MySuperKOLProj, for instance, then the resulting MCK project will be named MySuperKOLProj.lpi. The EXE file's name will be (as you might have guessed already) MySuperKOLProj.exe.
  5. Drop the TKOLForm component onto the form.
  6. Save current project.
  7. Open the resulting project which you specified in ProjectDest property (it should be found in the same directory). Delete all project1.* files - these files are no longer necessary.
  8. Play with your new KOL/MCK Project (adjust Parameters, drop TKOL... components, compile, run, debug, etc.) Enjoy!

Contacts

Report bugs, submit patches and ask questions at project's page at SourceForge: http://sourceforge.net/projects/kol-ce/