Files
lazarus-ccr/components/jvcllaz/examples/JvLookupAutoComplete/main.pas
wp_xxyyzz de0f60e1a8 jvcllaz: Add LookupAutoComplete component.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6890 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-04 21:53:45 +00:00

48 lines
673 B
ObjectPascal

unit main;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls,
JvAutoComplete;
type
{ TForm1 }
TForm1 = class(TForm)
Edit1: TEdit;
Edit2: TEdit;
JvLookupAutoComplete1: TJvLookupAutoComplete;
JvLookupAutoComplete2: TJvLookupAutoComplete;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
ListBox1: TListBox;
procedure FormCreate(Sender: TObject);
private
public
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.FormCreate(Sender: TObject);
begin
JvLookupAutoComplete2.Strings.Assign(ListBox1.Items);
end;
end.