mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 04:39:24 +02:00
lcl: undo rev 27074 #706b7cc905 and re implement using a static variable
git-svn-id: trunk@27081 -
This commit is contained in:
parent
aff125b5f7
commit
366d200bb8
@ -285,6 +285,7 @@ Type
|
|||||||
procedure Loaded; override;
|
procedure Loaded; override;
|
||||||
procedure Notification(AComponent: TComponent;
|
procedure Notification(AComponent: TComponent;
|
||||||
Operation: TOperation); override;
|
Operation: TOperation); override;
|
||||||
|
class procedure WSRegisterClass; override;
|
||||||
public
|
public
|
||||||
constructor Create(AOwner: TComponent); override;
|
constructor Create(AOwner: TComponent); override;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
@ -382,6 +383,7 @@ Type
|
|||||||
protected
|
protected
|
||||||
procedure DataChange(Sender: TObject); override;
|
procedure DataChange(Sender: TObject); override;
|
||||||
procedure UpdateData(Sender: TObject); override;
|
procedure UpdateData(Sender: TObject); override;
|
||||||
|
class procedure WSRegisterClass; override;
|
||||||
public
|
public
|
||||||
// we need to overrride the write method for db aware.
|
// we need to overrride the write method for db aware.
|
||||||
// the Read isn't an issue since the list will be updated
|
// the Read isn't an issue since the list will be updated
|
||||||
@ -845,6 +847,7 @@ Type
|
|||||||
procedure Change; override;
|
procedure Change; override;
|
||||||
procedure KeyPress(var Key:Char); override;
|
procedure KeyPress(var Key:Char); override;
|
||||||
procedure WndProc(var AMessage : TLMessage); override;
|
procedure WndProc(var AMessage : TLMessage); override;
|
||||||
|
class procedure WSRegisterClass; override;
|
||||||
public
|
public
|
||||||
constructor Create(TheOwner: TComponent); override;
|
constructor Create(TheOwner: TComponent); override;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
@ -975,6 +978,7 @@ Type
|
|||||||
procedure PictureChanged(Sender: TObject); override;
|
procedure PictureChanged(Sender: TObject); override;
|
||||||
procedure LoadPicture; virtual;
|
procedure LoadPicture; virtual;
|
||||||
procedure Loaded; override;
|
procedure Loaded; override;
|
||||||
|
class procedure WSRegisterClass; override;
|
||||||
public
|
public
|
||||||
constructor Create(TheOwner: TComponent); override;
|
constructor Create(TheOwner: TComponent); override;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
@ -1691,10 +1695,6 @@ end;
|
|||||||
|
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
RegisterPropertyToSkip(TDBImage, 'Picture', 'Removed in 0.9.29. DB control should not save/load their data from stream.', '');
|
|
||||||
RegisterPropertyToSkip(TDBListBox, 'Items', 'Removed in 0.9.29. DB control should not save/load their data from stream.', '');
|
|
||||||
RegisterPropertyToSkip(TDBMemo, 'Lines', 'Removed in 0.9.29. DB control should not save/load their data from stream.', '');
|
|
||||||
RegisterPropertyToSkip(TDBText, 'Caption', 'Removed in 0.9.29. DB control should not save/load their data from stream.', '');
|
|
||||||
{$I lcl_dbnav_images.lrs}
|
{$I lcl_dbnav_images.lrs}
|
||||||
|
|
||||||
finalization
|
finalization
|
||||||
|
@ -1481,6 +1481,8 @@ type
|
|||||||
{ TStringGrid }
|
{ TStringGrid }
|
||||||
|
|
||||||
TStringGrid = class(TCustomStringGrid)
|
TStringGrid = class(TCustomStringGrid)
|
||||||
|
protected
|
||||||
|
class procedure WSRegisterClass; override;
|
||||||
public
|
public
|
||||||
property Modified;
|
property Modified;
|
||||||
published
|
published
|
||||||
@ -10980,9 +10982,20 @@ begin
|
|||||||
FEditors[i].ActiveControl:=ActiveCtrl;
|
FEditors[i].ActiveControl:=ActiveCtrl;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
{ TStringGrid }
|
||||||
RegisterPropertyToSkip(TStringGrid, 'VisibleRowCount',
|
|
||||||
|
class procedure TStringGrid.WSRegisterClass;
|
||||||
|
const
|
||||||
|
Done: Boolean = False;
|
||||||
|
begin
|
||||||
|
if Done then
|
||||||
|
Exit;
|
||||||
|
RegisterPropertyToSkip(Self, 'VisibleRowCount',
|
||||||
'Property streamed in by older compiler', '');
|
'Property streamed in by older compiler', '');
|
||||||
RegisterPropertyToSkip(TStringGrid, 'VisibleColCount',
|
RegisterPropertyToSkip(Self, 'VisibleColCount',
|
||||||
'Property streamed in by older compiler', '');
|
'Property streamed in by older compiler', '');
|
||||||
|
inherited WSRegisterClass;
|
||||||
|
Done := True;
|
||||||
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
@ -193,6 +193,17 @@ begin
|
|||||||
DataChange(Self);
|
DataChange(Self);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
class procedure TDBImage.WSRegisterClass;
|
||||||
|
const
|
||||||
|
Done: Boolean = False;
|
||||||
|
begin
|
||||||
|
if Done then
|
||||||
|
Exit;
|
||||||
|
inherited WSRegisterClass;
|
||||||
|
RegisterPropertyToSkip(TDBImage, 'Picture', 'Removed in 0.9.29. DB control should not save/load their data from stream.', '');
|
||||||
|
Done := True;
|
||||||
|
end;
|
||||||
|
|
||||||
constructor TDBImage.Create(TheOwner: TComponent);
|
constructor TDBImage.Create(TheOwner: TComponent);
|
||||||
begin
|
begin
|
||||||
inherited Create(TheOwner);
|
inherited Create(TheOwner);
|
||||||
|
@ -41,3 +41,14 @@ begin
|
|||||||
FDataLink.Field.AsString := '';
|
FDataLink.Field.AsString := '';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
class procedure TDBListBox.WSRegisterClass;
|
||||||
|
const
|
||||||
|
Done: Boolean = False;
|
||||||
|
begin
|
||||||
|
if Done then
|
||||||
|
Exit;
|
||||||
|
inherited WSRegisterClass;
|
||||||
|
RegisterPropertyToSkip(TDBListBox, 'Items', 'Removed in 0.9.29. DB control should not save/load their data from stream.', '');
|
||||||
|
Done := True;
|
||||||
|
end;
|
||||||
|
|
||||||
|
@ -215,6 +215,17 @@ begin
|
|||||||
inherited WndProc(AMessage);
|
inherited WndProc(AMessage);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
class procedure TDBMemo.WSRegisterClass;
|
||||||
|
const
|
||||||
|
Done: Boolean = False;
|
||||||
|
begin
|
||||||
|
if Done then
|
||||||
|
Exit;
|
||||||
|
inherited WSRegisterClass;
|
||||||
|
RegisterPropertyToSkip(TDBMemo, 'Lines', 'Removed in 0.9.29. DB control should not save/load their data from stream.', '');
|
||||||
|
Done := True;
|
||||||
|
end;
|
||||||
|
|
||||||
destructor TDBMemo.Destroy;
|
destructor TDBMemo.Destroy;
|
||||||
begin
|
begin
|
||||||
FDataLink.Free;
|
FDataLink.Free;
|
||||||
|
@ -91,6 +91,17 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
class procedure TDBText.WSRegisterClass;
|
||||||
|
const
|
||||||
|
Done: Boolean = False;
|
||||||
|
begin
|
||||||
|
if Done then
|
||||||
|
Exit;
|
||||||
|
inherited WSRegisterClass;
|
||||||
|
RegisterPropertyToSkip(TDBText, 'Caption', 'Removed in 0.9.29. DB control should not save/load their data from stream.', '');
|
||||||
|
Done := True;
|
||||||
|
end;
|
||||||
|
|
||||||
{ Public Methods}
|
{ Public Methods}
|
||||||
constructor TDBText.Create(AOwner: TComponent);
|
constructor TDBText.Create(AOwner: TComponent);
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user