git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1129 8e941d3f-bd1b-0410-a28a-d453659cc2b4

This commit is contained in:
alexs75
2010-01-19 19:19:35 +00:00
parent f01088fc7a
commit 888ed25fdd

View File

@ -189,6 +189,7 @@ type
procedure KeyPress(var Key: char); override;
constructor CreatePopUp(AOwner: TComponent;
APopUpFormOptions:TPopUpFormOptions; AFieldList:string; BtnWidtn:integer);
destructor Destroy; override;
property DataSet:TDataSet read GetDataSet write SetDataSet;
property LookupDisplayIndex:integer read GetLookupDisplayIndex write SetLookupDisplayIndex;
end;
@ -507,6 +508,12 @@ begin
FRowCount:=FPopUpFormOptions.DropDownCount + 2 + ord(dgTitles in FGrid.Options);
end;
destructor TPopUpForm.Destroy;
begin
FGrid.DataSource:=nil;
inherited Destroy;
end;
{ TPopUpFormOptions }
procedure TPopUpFormOptions.SetAutoSort(const AValue: boolean);