Recent

Author Topic: Error Installing KOL-CE in Lazarus 0.9.29  (Read 10247 times)

Fabio Souza

  • New member
  • *
  • Posts: 12
Error Installing KOL-CE in Lazarus 0.9.29
« on: March 22, 2010, 09:35:21 pm »
When trying to install KOL-CE version 2.80.3 with Lazarus 0.9.29 using the file folder MirrorKOLPackage.lpk MCK, I get the error below:

C: \ lazarus \ components \ Kol-CE \ mck \ mckToolbarEditor.inc (777.59) Error: Identifier not found "GetLookupRootForComponent"

Code: [Select]
procedure TfmToolbarEditor.MakeActive( SelectAny: Boolean );
var
{$ifndef FPC}
    F: TForm;
    D: IDesigner;
    FD: IFormDesigner;
{$endif FPC}
    Bt: TKOLToolbarButton;
begin
  if lvButtons.Items.Count > 0 then
  if lvButtons.Selected = nil then
  if SelectAny then
    lvButtons.Selected := lvButtons.Items[ 0 ];
  if lvButtons.Selected <> nil then
  begin
    Bt := lvButtons.Selected.Data;
{$ifdef FPC}
    GlobalDesignHook.SelectOnlyThis(Bt);
[b]    GlobalDesignHook.LookupRoot:=GetLookupRootForComponent(ToolbarControl);
[/b]{$else Delphi}
    F := (ToolbarControl as TKOLToolbar).Owner as TForm;
    if F <> nil then
    begin
//*///////////////////////////////////////////////////////
  {$IFDEF _D6orHigher}                                  //
        F.Designer.QueryInterface(IFormDesigner,D);     //
  {$ELSE}                                               //
//*///////////////////////////////////////////////////////
        D := F.Designer;
//*///////////////////////////////////////////////////////
  {$ENDIF}                                              //
//*///////////////////////////////////////////////////////
      if D <> nil then
      if QueryFormDesigner( D, FD ) then
      begin
        RemoveSelection( FD );
        FD.SelectComponent( Bt );
      end;
    end;
{$endif FPC}
  end;
  AdjustButtons;
end;                 



Regards,

Fabio Souza

Fabio Souza

  • New member
  • *
  • Posts: 12
Re: Error Installing KOL-CE in Lazarus 0.9.29
« Reply #1 on: March 29, 2010, 06:44:48 pm »
work using the version 0.98.3 and Fpc 2.4.0.
I could not do work in version 0.9.29 + Fpc 2.4.1

thanks,

Fabio Souza

dick

  • New member
  • *
  • Posts: 7
Re: Error Installing KOL-CE in Lazarus 0.9.29
« Reply #2 on: April 19, 2010, 01:51:22 am »
HI, Fabio Souza

Can you show me how to insatll KOL-CE ?

thank

because I faill install KOL-CE for a long time

SunyD

  • Guest
Re: Error Installing KOL-CE in Lazarus 0.9.29
« Reply #3 on: April 23, 2010, 01:23:06 pm »
to souza.fo:
GetLookupRootForComponent is definied in PropEditUtils.pas. Add:
-in mckToolbarEditor.pas in line 23
  Buttons, PropEdits, PropEditUtils
in mckMenuEditor.pas in line 23
  PropEdits, PropEditUtils

to dick
How to install:
Dowload latest kol-ce from http://sourceforge.net/project/showfiles.php?group_id=188451
Etract zip-file in a folder i.E. Components.
Zip-file contains 2 folders kol and mck. Open from mck folder MirrorKOLPackage.lpk in lazarus then just press on compile then install.

Kol-ce wiki: http://wiki.lazarus.freepascal.org/KOL-CE