Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 2303

Summary: The TeeGrid 1.09 cannot be installed in Lazaurus 2.06
Product: TeeGrid for Delphi Reporter: Jakub Cebula <jakub.cebula>
Component: GridAssignee: david berneda <david>
Status: RESOLVED FIXED    
Severity: blocker CC: yeray
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: Log from TeeGridRecompile

Description Jakub Cebula 2020-03-24 08:25:35 EDT
Created attachment 935 [details]
Log from TeeGridRecompile

Hello,

My attempts to install TeeGrid 1.09 on Lazaurus 2.06 failed. Failed to compile sources. The compiler terminates compilation. Version 1.08 TeeGrid installs without any problem in the same Lazaurs configuration. 
I attach the log from version 1.09 TeeGrid. 
Lazaurus is installed in the C:\Lazaurus directory, and TeeGrid itself in C:\Lazaurus\TeeGrid. Windows 10 x64 version 10.0.18363.720
Colud you check it? 

Thankyou in advance
JC
Comment 1 yeray alonso 2020-03-31 03:31:45 EDT
We've recently fixed this error while compiling for Lazarus.

Modify the TFilterComboBox.FilterItems method in the "Sources\VCL\VCLTee.Control.pas" unit for the following and try to recompile.

procedure TFilterComboBox.FilterItems;
var
  I: Integer;
{$IFNDEF FPC}
  Selection: TSelection;
{$ENDIF}
begin
{$IFNDEF FPC}
  // store the current combo edit selection
  SendMessage(Handle, CB_GETEDITSEL, WPARAM(@Selection.StartPos),
    LPARAM(@Selection.EndPos));
{$ENDIF}

  //start filter cycle
  Items.BeginUpdate;
  try
    // if the combo edit is not empty, then clear the items
    // and search through the FStoredItems
    if Text <> '' then
    begin
      // clear all items
      Items.Clear;

      for I := 0 to FStoredItems.Count - 1 do
        if AnsiContainsText(FStoredItems[I], Text) then
          Items.Add(FStoredItems[I]); //resulting matched items
    end
    else
      // if no match, ie. empty filter, add all items.
      Items.Assign(FStoredItems)
  finally
    Items.EndUpdate;
  end;
{$IFNDEF FPC}
  // restore the last combo edit selection
  SendMessage(Handle, CB_SETEDITSEL, 0, MakeLParam(Selection.StartPos,
    Selection.EndPos));
{$ENDIF}
end;