Re: [Lazarus] KOL-CE and TKOLMainMenu

2008-12-12 Thread Yury Sidorov
From: User
 Hi, I dropped a TKOLMainMenu into a KOLForm and I added several 
 menus with submenus but they are not  shown in WinCE.

 I use KOL CE 2.80.2 and Lazarus 0.9.27 beta FPC 2.2.3.

 What is the problem?

Your form or project can be locked. It prevents autogeneartion of .inc 
files. Check Locked property for TKOLProject and TKOLForm components.

Also use release version of Lazarus 0.9.26. I do not test KOL-CE with 
trunk version of Lazarus and it can be incompatible...

Yury Sidorov. 
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LoadLibrary fails on WinCE

2008-12-04 Thread Yury Sidorov
From: Pavel Reznícek [EMAIL PROTECTED]
 Felipe Monteiro de Carvalho napsal(a):
 1 - make sure you are using loadlibrary from the windows unit and 
 then
 call GetLastError to see why it failed.

 Windows CE has some differences from desktop. I would try putting 
 the
 library in the windows or windows/system directory or passing the 
 full
 path to the library.


 OK, I didn't manage to catch the error but have got a suspicion 
 about
 what prevents the library to load instead.

 Unfortunately, it seems to be the size (or complexity) of the 
 compiled
 executable what decides if the library loads or not.

 Is it possible that a 20.6 MB large executable program file prevents 
 any
 additional libraries from loading into memory when run?
 Smaller programs (starting from 260 kB fpc-only test program and 
 ending
 up with a 16 MB LCL application) execute well and load the library
 successfully. Despite that, the final full-job application won't 
 load
 postgres libraries at all.
 Furthermore, there has another bug appeared which prevents me from
 catching the exact error for now.
 And I'm sorry, I switched back to 0.9.24 again (but can return to 26 
 or
 SVN for test purposes if really needed).

 Is it possible that there's a bottleneck area in the memory, such as
 what I know to be called system resources on other OSes, such as
 Windows 9X  ME?

 What leads me to this way of thinking is that I have set up 256 MB 
 of
 RAM for the PocketPC emulator. That should suffice for that 20 MB
 application with even a huge load of some libraries or data.

Large .exe and many large .dlls can cause problems on Windows Movile 6 
or earlier:

Read this:
http://bolingconsulting.com/blog/?p=4
and this:
http://msdn.microsoft.com/en-us/library/ms836325.aspx

Yury. 
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] KOL-CE How was overlapping menu fixed?

2008-12-04 Thread Yury Sidorov
From: Felipe Monteiro de Carvalho 
[EMAIL PROTECTED]
 Hello Yuri,

 How did you implement maximizing a form in KOL-CE?

 Take a look here:

 http://wiki.lazarus.freepascal.org/Windows_CE_Development_Notes#Overlapping_menu_bottom

 I have looked a lot, but it seams impossible to maximize a form
 perfectly in Windows CE, because sometimes the menu will not be
 considered part of the work area so you need an extra factor, but I
 have found no way to find when the factor is needed.

You can get bounding rect of menu bar using its handle. It is hwndMB 
member of SHMENUBARINFO structure.
After that you can adjust form's height if it overlaps the menubar.

Yury.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] KOL CE

2008-11-04 Thread Yury Sidorov
From: Mattias Gärtner [EMAIL PROTECTED]
 Zitat von Vincent Snijders [EMAIL PROTECTED]:

 2008/11/4 Kutlay Ozger [EMAIL PROTECTED]:
  Events doesn't working with KOL-CE. 
  (http://wiki.freepascal.org/KOL-CE)
 
  I'm using Lazarus 0.9.26 and FPC 2.2.2, KOL CE 2.80.1
 
  PS: I compiled Lazarus with -dDisableFakeMethods option. (plus 
  clean up +
  Build All)

 Reported: http://bugs.freepascal.org/view.php?id=12248

 Until Mattias has reviewed and applied the patch, you can apply it 
 locally.

 I fixed it. But the old hack methods should not be used any longer. 
 They will
 probably be removed in the next release.
 KOL should be fixed to work with the fake methods.

I released KOL-CE 2.80.2 just now. DisableFakeMethods is not needed 
anymore.
KOL-CE 2.80.2 will work with Lazarus 0.9.26 out of box.

Yury Sidorov. 
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] KOL CE

2008-11-04 Thread Yury Sidorov
From: Vincent Snijders [EMAIL PROTECTED]
 2008/11/4 Kutlay Ozger [EMAIL PROTECTED]:
 Events doesn't working with KOL-CE. 
 (http://wiki.freepascal.org/KOL-CE)

 I'm using Lazarus 0.9.26 and FPC 2.2.2, KOL CE 2.80.1

 PS: I compiled Lazarus with -dDisableFakeMethods option. (plus 
 clean up +
 Build All)

 Reported: http://bugs.freepascal.org/view.php?id=12248

 Until Mattias has reviewed and applied the patch, you can apply it 
 locally.

Also you can try to use svn version of KOL-CE. It should work with 
release version of Lazarus 0.9.26 out of box. It is not needed to 
use -dDisableFakeMethods option anymore.

Yury Sidorov. 
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem compiling Arm WinCE LCL

2008-05-15 Thread Yury Sidorov
From: Felipe Monteiro de Carvalho 
[EMAIL PROTECTED]
 On Thu, May 15, 2008 at 9:34 AM, Paul Michell
 [EMAIL PROTECTED] wrote:
 Any hints would be appreciated,

 There were some changes in Free Pascal 2.2.1 in the last week. 
 Update
 your wince Free Pascal to the latest 2.2.1 one.

It is needed to correct unit name oleaut32 to oleauto in LCL.
I hope it is final change in unit naming :)

Yury. 
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Error rebuilding Lazarus IDE

2008-05-04 Thread Yury Sidorov
From: Vincent Snijders [EMAIL PROTECTED]
 Horacio Jamilis schreef:
  Hi,
 
  I am trying to recompile the Lazarus IDE from inside lazarus, and 
  the
  build fails.
 
  I am using lazarus under WinXP SP2 Spanish, FPC 2.2.1 SVN today 
  and LAZ
  SVN today (updated 2 minutes ago)
 
  I then exported all the messages to a file and the last lines are:
 
  make.exe[1]: Leaving directory `E:/lazarus/laz_svn/ide'
  E:/lazarus/pp/bin/i386-win32/make.exe -C ide ide
  make.exe[1]: Entering directory `E:/lazarus/laz_svn/ide'
  ../tools/svn2revisioninc.exe .. revision.inc
  Created E:\lazarus\laz_svn\ide\revision.inc for revision: 15036
  E:/lazarus/pp/bin/i386-win32/make.exe --assume-new=lazarus.pp
  lazarus.exe OPT=' -WG @C:\Documents and 
  Settings\Horacio\Configuración
  local\Datos de programa\lazarus\idemake.cfg'
  make.exe[2]: Entering directory `E:/lazarus/laz_svn/ide'
  E:/lazarus/pp/bin/i386-win32/ppc386.exe -gl -Fu../lcl/units/i386-win32
  -Fu../lcl/units/i386-win32/win32
  -Fu../components/codetools/units/i386-win32
  -Fu../components/synedit/units/i386-win32 -Fu../components/custom
  -Fu../components/mpaslex -Fu../ideintf/units/i386-win32 -Fu../designer
  -Fu../designer/jitform/units/i386-win32 -Fu../debugger -Fu../converter
  -Fu../packager -Fu../packager/units/i386-win32 -Fu../units/i386-win32
  -Fu. -Fiinclude -Fiinclude/win32 -Fi../images -FE..
  -FU../units/i386-win32 -WG @C:\Documents and
  Settings\Horacio\Configuración local\Datos de
  programa\lazarus\idemake.cfg -di386 lazarus.pp
  Fatal: Unable to open file C:\Documents and
  Settings\Horacio\Configuraci¾n local\Datos de 
  programa\lazarus\idemake.cfg
 
  What I can see is that one character is changed in the path:
  the right word (in the spanish windows file system) is 
  Configuración,
  and in the error line it appears as Configuraci¾n... so the 
  character
  seems affected and that is why the file is not found.
 
  After this I executed the command from the cmd.exe prompt and 
  everything
  is build correctly.
 
  I hope this is enougth for you to fix it.
 

 The description is clear, but I don't know yet how to fix it. Can 
 you
 create a bug report? Maybe there is some incompatibility between RTL
 routine to get the configuration directory and the way the compiler
 tries to open files.

It is caused by make.exe. If a command contains quote  make.exe 
creates .bat file with that command and executes this .bat file via 
cmd.exe, which performs OEM-ANSI conversion for .bat file text...

To fix this problem use ' instead of  as quotation and make.exe will 
not create .bat file and all will work (also on Win9x).

Yury.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus