mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-16 22:28:19 +02:00
MG: fixed loading TListView from stream
git-svn-id: trunk@3492 -
This commit is contained in:
parent
1c558db206
commit
ae5d7dfda1
@ -413,8 +413,10 @@ var
|
|||||||
begin
|
begin
|
||||||
//clear the listbox and display the items if any...
|
//clear the listbox and display the items if any...
|
||||||
Listbox1.Items.Clear;
|
Listbox1.Items.Clear;
|
||||||
for I := 0 to FColumns.Count-1 do
|
for I := 0 to FColumns.Count-1 do begin
|
||||||
|
writeln('TColumnDlg.FormOnShow ',i,' "',FColumns[i].Caption,'"');
|
||||||
Listbox1.Items.Add(FColumns[i].Caption);
|
Listbox1.Items.Add(FColumns[i].Caption);
|
||||||
|
end;
|
||||||
|
|
||||||
if Listbox1.Items.Count > 0 then
|
if Listbox1.Items.Count > 0 then
|
||||||
begin
|
begin
|
||||||
|
@ -631,6 +631,7 @@ begin
|
|||||||
FTop:=FRealTop;
|
FTop:=FRealTop;
|
||||||
FWidth:=FRealWidth;
|
FWidth:=FRealWidth;
|
||||||
FHeight:=FRealHeight;
|
FHeight:=FRealHeight;
|
||||||
|
InvalidGuideLinesCache;
|
||||||
Exclude(FStates,cssBoundsNeedsUpdate);
|
Exclude(FStates,cssBoundsNeedsUpdate);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -240,7 +240,7 @@ type
|
|||||||
function GetItem(const AIndex: Integer): TListColumn;
|
function GetItem(const AIndex: Integer): TListColumn;
|
||||||
procedure SetItem(const AIndex: Integer; const AValue: TListColumn);
|
procedure SetItem(const AIndex: Integer; const AValue: TListColumn);
|
||||||
protected
|
protected
|
||||||
procedure Update(AItem: TCollectionItem); override;
|
procedure Update(AnItem: TCollectionItem); override;
|
||||||
public
|
public
|
||||||
constructor Create(AOwner: TCustomListView);
|
constructor Create(AOwner: TCustomListView);
|
||||||
function Add: TListColumn;
|
function Add: TListColumn;
|
||||||
@ -304,6 +304,7 @@ type
|
|||||||
protected
|
protected
|
||||||
ParentWindow : TScrolledWindow;
|
ParentWindow : TScrolledWindow;
|
||||||
procedure InitializeWnd; override;
|
procedure InitializeWnd; override;
|
||||||
|
procedure Loaded; override;
|
||||||
procedure Change(AItem: TListItem; AChange: Integer); dynamic;
|
procedure Change(AItem: TListItem; AChange: Integer); dynamic;
|
||||||
procedure ColClick(AColumn: TListColumn); dynamic;
|
procedure ColClick(AColumn: TListColumn); dynamic;
|
||||||
procedure Delete(Item : TListItem);
|
procedure Delete(Item : TListItem);
|
||||||
@ -1706,6 +1707,9 @@ end.
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.50 2002/10/09 11:46:04 lazarus
|
||||||
|
MG: fixed loading TListView from stream
|
||||||
|
|
||||||
Revision 1.49 2002/10/01 18:00:02 lazarus
|
Revision 1.49 2002/10/01 18:00:02 lazarus
|
||||||
AJ: Initial TUpDown, minor property additions to improve reading Delphi created forms.
|
AJ: Initial TUpDown, minor property additions to improve reading Delphi created forms.
|
||||||
|
|
||||||
|
@ -141,13 +141,12 @@ begin
|
|||||||
if FUpdateCount>0 then exit;
|
if FUpdateCount>0 then exit;
|
||||||
if not (lvUpdateNeeded in FStates) then exit;
|
if not (lvUpdateNeeded in FStates) then exit;
|
||||||
if csDestroying in Componentstate Then Exit;
|
if csDestroying in Componentstate Then Exit;
|
||||||
//TODO: Optimize implementation by invoking individual upadates instead of
|
//TODO: Optimize implementation by invoking individual updates instead of
|
||||||
// recreating window
|
// recreating window
|
||||||
//notify the interface....
|
//notify the interface....
|
||||||
if (not HandleAllocated) or (csLoading in ComponentState) then exit;
|
if (not HandleAllocated) or (csLoading in ComponentState) then exit;
|
||||||
Exclude(FStates,lvUpdateNeeded);
|
Exclude(FStates,lvUpdateNeeded);
|
||||||
RecreateWnd;
|
RecreateWnd;
|
||||||
CNSendMessage(LM_SETPROPERTIES,self,nil);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCustomListView.InitializeWnd;
|
procedure TCustomListView.InitializeWnd;
|
||||||
@ -158,6 +157,12 @@ begin
|
|||||||
CNSendMessage(LM_LV_SELECTITEM,self,FSelected);
|
CNSendMessage(LM_LV_SELECTITEM,self,FSelected);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TCustomListView.Loaded;
|
||||||
|
begin
|
||||||
|
inherited Loaded;
|
||||||
|
DoUpdate;
|
||||||
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------}
|
{------------------------------------------------------------------------------}
|
||||||
{ TCustomListView DoDeletion }
|
{ TCustomListView DoDeletion }
|
||||||
{------------------------------------------------------------------------------}
|
{------------------------------------------------------------------------------}
|
||||||
@ -540,6 +545,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.23 2002/10/09 11:46:04 lazarus
|
||||||
|
MG: fixed loading TListView from stream
|
||||||
|
|
||||||
Revision 1.22 2002/09/14 14:47:41 lazarus
|
Revision 1.22 2002/09/14 14:47:41 lazarus
|
||||||
MG: fixed icons
|
MG: fixed icons
|
||||||
|
|
||||||
|
@ -74,7 +74,6 @@ end;
|
|||||||
procedure TListColumn.SetCaption(const AValue: String);
|
procedure TListColumn.SetCaption(const AValue: String);
|
||||||
begin
|
begin
|
||||||
if AValue = FCaption then Exit;
|
if AValue = FCaption then Exit;
|
||||||
|
|
||||||
FCaption := AValue;
|
FCaption := AValue;
|
||||||
Changed(False);
|
Changed(False);
|
||||||
end;
|
end;
|
||||||
@ -122,6 +121,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.4 2002/10/09 11:46:04 lazarus
|
||||||
|
MG: fixed loading TListView from stream
|
||||||
|
|
||||||
Revision 1.3 2002/05/10 06:05:53 lazarus
|
Revision 1.3 2002/05/10 06:05:53 lazarus
|
||||||
MG: changed license to LGPL
|
MG: changed license to LGPL
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ begin
|
|||||||
inherited SetItem(AIndex, AValue);
|
inherited SetItem(AIndex, AValue);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TListColumns.Update(AItem: TCollectionItem);
|
procedure TListColumns.Update(AnItem: TCollectionItem);
|
||||||
begin
|
begin
|
||||||
//TODO: Optimize implementation by invoking individual upadates instead of
|
//TODO: Optimize implementation by invoking individual upadates instead of
|
||||||
// recreating window
|
// recreating window
|
||||||
@ -49,6 +49,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.4 2002/10/09 11:46:05 lazarus
|
||||||
|
MG: fixed loading TListView from stream
|
||||||
|
|
||||||
Revision 1.3 2002/05/10 06:05:53 lazarus
|
Revision 1.3 2002/05/10 06:05:53 lazarus
|
||||||
MG: changed license to LGPL
|
MG: changed license to LGPL
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user