IDEIntf: object inspector: ussing OnGetItems

git-svn-id: trunk@16313 -
This commit is contained in:
mattias 2008-08-30 21:15:27 +00:00
parent 2c13e3911b
commit 6aaa0102c7

View File

@ -403,11 +403,7 @@ type
procedure ValueComboBoxMouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure ValueComboBoxCloseUp(Sender: TObject);
{$IFDEF UseOnGetItems}
procedure ValueComboBoxGetItems(Sender: TObject);
{$ELSE}
procedure ValueComboBoxDropDown(Sender: TObject);
{$ENDIF}
procedure ValueButtonClick(Sender: TObject);
procedure ValueComboBoxDrawItem(Control: TWinControl; Index: Integer;
ARect: TRect; State: TOwnerDrawState);
@ -866,11 +862,7 @@ begin
OnKeyDown:=@ValueComboBoxKeyDown;
OnKeyUp:=@ValueComboBoxKeyUp;
OnMouseUp:=@ValueComboBoxMouseUp;
{$IFDEF UseOnGetItems}
OnGetItems:=@ValueComboBoxGetItems;
{$ELSE}
OnDropDown:=@ValueComboBoxDropDown;
{$ENDIF}
OnCloseUp:=@ValueComboBoxCloseUp;
OnDrawItem:=@ValueComboBoxDrawItem;
end;
@ -2643,11 +2635,7 @@ begin
SetRowValue;
end;
{$IFDEF UseOnGetItems}
procedure TOICustomPropertyGrid.ValueComboBoxGetItems(Sender: TObject);
{$ELSE}
procedure TOICustomPropertyGrid.ValueComboBoxDropDown(Sender: TObject);
{$ENDIF}
var
CurRow: TOIPropertyGridRow;
MaxItemWidth, CurItemWidth, i, Cnt: integer;