mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 22:59:15 +02:00
fixed restoring listview columns at design time, issue #6962
git-svn-id: trunk@9352 -
This commit is contained in:
parent
4fd508b71d
commit
3d36c2396e
@ -871,6 +871,7 @@ type
|
|||||||
function GetMaxScrolledLeft : Integer;
|
function GetMaxScrolledLeft : Integer;
|
||||||
function GetMaxScrolledTop : Integer;
|
function GetMaxScrolledTop : Integer;
|
||||||
procedure ImageChanged(Sender : TObject);
|
procedure ImageChanged(Sender : TObject);
|
||||||
|
procedure Loaded; override;
|
||||||
procedure WMHScroll(var Msg: TLMScroll); message LM_HSCROLL;
|
procedure WMHScroll(var Msg: TLMScroll); message LM_HSCROLL;
|
||||||
procedure WMVScroll(var Msg: TLMScroll); message LM_VSCROLL;
|
procedure WMVScroll(var Msg: TLMScroll); message LM_VSCROLL;
|
||||||
protected
|
protected
|
||||||
|
@ -654,6 +654,13 @@ begin
|
|||||||
// end;
|
// end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TCustomListView.Loaded;
|
||||||
|
begin
|
||||||
|
// create interface columns if needed
|
||||||
|
FColumns.IntfCreateColumns;
|
||||||
|
inherited Loaded;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TCustomListView.SetScrollBars(const AValue: TScrollStyle);
|
procedure TCustomListView.SetScrollBars(const AValue: TScrollStyle);
|
||||||
begin
|
begin
|
||||||
if (FScrollBars = AValue) then exit;
|
if (FScrollBars = AValue) then exit;
|
||||||
|
@ -106,6 +106,7 @@ begin
|
|||||||
Result := (Collection <> nil)
|
Result := (Collection <> nil)
|
||||||
and (TListColumns(Collection).FOwner <> nil)
|
and (TListColumns(Collection).FOwner <> nil)
|
||||||
and TListColumns(Collection).FOwner.HandleAllocated
|
and TListColumns(Collection).FOwner.HandleAllocated
|
||||||
|
and not (csReading in TListColumns(Collection).FOwner.ComponentState)
|
||||||
and not (csDestroying in TListColumns(Collection).FOwner.ComponentState);
|
and not (csDestroying in TListColumns(Collection).FOwner.ComponentState);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user