ExCtrl: Use InitializeWnd instead of CreateHandle

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7941 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2020-12-21 23:33:33 +00:00
parent 577782d54e
commit 533d506fe9

View File

@ -60,6 +60,7 @@ type
const AXProportion, AYProportion: Double); override;
class function GetControlClassDefaultSize: TSize; override;
procedure GetItems; override;
procedure InitializeWnd; override;
procedure DrawItem(Index: Integer; ARect: TRect; State: TOwnerDrawState); override;
procedure FontChanged(Sender: TObject); override;
procedure SetItems(const Value: TStrings); override;
@ -319,7 +320,7 @@ end;
procedure TColumnComboBoxEx.GetItems;
begin
inherited GetItems;
SetOffsets;
// SetOffsets;
end;
function TColumnComboBoxEx.GetTextSize(const aText: String): TSize;
@ -345,6 +346,12 @@ begin
end;
end;
procedure TColumnComboBoxEx.InitializeWnd;
begin
inherited;
SetOffsets;
end;
procedure TColumnComboBoxEx.SetColSeparatorColor(AValue: TColor);
begin
if FColSeparatorColor <> AValue then