You've already forked lazarus-ccr
In TRxDBLookupCombo property DropDownCount now work
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@431 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -36,7 +36,7 @@
|
|||||||
- fix error with empty sring in TRxDateEdit.
|
- fix error with empty sring in TRxDateEdit.
|
||||||
+ In property TRxDBLookupCombo.PopUpFormOptions add field AutoFillColumns. Used in dropdown list.
|
+ In property TRxDBLookupCombo.PopUpFormOptions add field AutoFillColumns. Used in dropdown list.
|
||||||
- Cleanup code in TRxDBLookupCombo.Paint
|
- Cleanup code in TRxDBLookupCombo.Paint
|
||||||
|
+ In TRxDBLookupCombo property DropDownCount now work
|
||||||
29.08.2007 - ������ 1.1.5.98 (svn revision 39)
|
29.08.2007 - ������ 1.1.5.98 (svn revision 39)
|
||||||
+ In RxDBgrid - after close dataset list of SelectedRows is cleared
|
+ In RxDBgrid - after close dataset list of SelectedRows is cleared
|
||||||
+ fix resaizing find form for RxDbGrd
|
+ fix resaizing find form for RxDbGrd
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
+ � �������� PopUpFormOptions ���������� TRxDBLookupCombo ��������� ���� AutoFillColumns - ������ ������������ ����
|
+ � �������� PopUpFormOptions ���������� TRxDBLookupCombo ��������� ���� AutoFillColumns - ������ ������������ ����
|
||||||
�� TDBGrid - ������������ � ���������� ������
|
�� TDBGrid - ������������ � ���������� ������
|
||||||
- ������� ��� � ��������� ���������� TRxDBLookupCombo
|
- ������� ��� � ��������� ���������� TRxDBLookupCombo
|
||||||
|
+ � TRxDBLookupCombo �������� �������� DropDownCount
|
||||||
29.08.2007 - ������ 1.1.5.98 (svn revision 39)
|
29.08.2007 - ������ 1.1.5.98 (svn revision 39)
|
||||||
+ � RxDBGrid ����� �������� ������ ������ ������ ���������� ����� (SelectedRows)
|
+ � RxDBGrid ����� �������� ������ ������ ������ ���������� ����� (SelectedRows)
|
||||||
���������
|
���������
|
||||||
|
@ -161,6 +161,7 @@ type
|
|||||||
FDataSource:TDataSource;
|
FDataSource:TDataSource;
|
||||||
FOnPopUpCloseEvent:TPopUpCloseEvent;
|
FOnPopUpCloseEvent:TPopUpCloseEvent;
|
||||||
FPopUpFormOptions:TPopUpFormOptions;
|
FPopUpFormOptions:TPopUpFormOptions;
|
||||||
|
FRowCount:word;
|
||||||
function GetDataSet: TDataSet;
|
function GetDataSet: TDataSet;
|
||||||
function GetLookupDisplayIndex: integer;
|
function GetLookupDisplayIndex: integer;
|
||||||
procedure SetDataSet(const AValue: TDataSet);
|
procedure SetDataSet(const AValue: TDataSet);
|
||||||
@ -174,6 +175,7 @@ type
|
|||||||
procedure GridClickEvent(Column: TColumn);
|
procedure GridClickEvent(Column: TColumn);
|
||||||
procedure CloseOk;
|
procedure CloseOk;
|
||||||
procedure Paint;override;
|
procedure Paint;override;
|
||||||
|
procedure CreateWnd;override;
|
||||||
//
|
//
|
||||||
procedure DoSetFieldsFromString(FL:string);
|
procedure DoSetFieldsFromString(FL:string);
|
||||||
procedure DoSetFieldsFromColList;
|
procedure DoSetFieldsFromColList;
|
||||||
@ -334,6 +336,12 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TPopUpForm.CreateWnd;
|
||||||
|
begin
|
||||||
|
inherited CreateWnd;
|
||||||
|
Height:=FGrid.DefaultRowHeight * FRowCount;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TPopUpForm.DoSetFieldsFromString(FL: string);
|
procedure TPopUpForm.DoSetFieldsFromString(FL: string);
|
||||||
var
|
var
|
||||||
FieldName:string;
|
FieldName:string;
|
||||||
@ -481,7 +489,10 @@ begin
|
|||||||
FGrid.BorderStyle:=FPopUpFormOptions.BorderStyle;
|
FGrid.BorderStyle:=FPopUpFormOptions.BorderStyle;
|
||||||
FGrid.OnGetCellProps:=FPopUpFormOptions.OnGetCellProps;
|
FGrid.OnGetCellProps:=FPopUpFormOptions.OnGetCellProps;
|
||||||
FGrid.AutoFillColumns:=FPopUpFormOptions.AutoFillColumns;
|
FGrid.AutoFillColumns:=FPopUpFormOptions.AutoFillColumns;
|
||||||
|
if FPopUpFormOptions.DropDownCount < 1 then
|
||||||
|
FRowCount:=10 + ord(dgTitles in FGrid.Options)
|
||||||
|
else
|
||||||
|
FRowCount:=FPopUpFormOptions.DropDownCount + 2 + ord(dgTitles in FGrid.Options);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TPopUpFormOptions }
|
{ TPopUpFormOptions }
|
||||||
|
Reference in New Issue
Block a user