mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 06:39:13 +02:00
added DataChange after Loaded
git-svn-id: trunk@4648 -
This commit is contained in:
parent
62eb6ced1e
commit
10e86b989c
@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
DbCtrls.pp
|
DbCtrls.pp
|
||||||
-------------------
|
----------
|
||||||
An interface to DB aware Controls
|
An interface to DB aware Controls
|
||||||
Initial Revision : Sun Sep 14 2003
|
Initial Revision : Sun Sep 14 2003
|
||||||
|
|
||||||
@ -218,20 +218,19 @@ Type
|
|||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
property Field: TField read GetField;
|
property Field: TField read GetField;
|
||||||
published
|
published
|
||||||
property DataField: string read GetDataField write SetDataField;
|
|
||||||
property DataSource: TDataSource read GetDataSource write SetDataSource;
|
|
||||||
|
|
||||||
property Align;
|
property Align;
|
||||||
property Alignment;
|
property Alignment;
|
||||||
property AutoSize;
|
|
||||||
property Anchors;
|
property Anchors;
|
||||||
|
property AutoSize;
|
||||||
property Caption;
|
property Caption;
|
||||||
property Color;
|
property Color;
|
||||||
|
property DataField: string read GetDataField write SetDataField;
|
||||||
|
property DataSource: TDataSource read GetDataSource write SetDataSource;
|
||||||
property FocusControl;
|
property FocusControl;
|
||||||
property Font;
|
property Font;
|
||||||
property Visible;
|
|
||||||
property Layout;
|
property Layout;
|
||||||
property ShowAccelChar;
|
property ShowAccelChar;
|
||||||
|
property Visible;
|
||||||
property WordWrap;
|
property WordWrap;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -341,6 +340,7 @@ Type
|
|||||||
property DataLink: TFieldDataLink read FDataLink;
|
property DataLink: TFieldDataLink read FDataLink;
|
||||||
function GetButtonValue(Index: Integer): string;
|
function GetButtonValue(Index: Integer): string;
|
||||||
procedure UpdateRadioButtonStates; override;
|
procedure UpdateRadioButtonStates; override;
|
||||||
|
procedure Loaded; override;
|
||||||
public
|
public
|
||||||
constructor Create(TheOwner: TComponent); override;
|
constructor Create(TheOwner: TComponent); override;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
@ -393,6 +393,7 @@ Type
|
|||||||
procedure FocusRequest(Sender: TObject); virtual;
|
procedure FocusRequest(Sender: TObject); virtual;
|
||||||
procedure Notification(AComponent: TComponent;
|
procedure Notification(AComponent: TComponent;
|
||||||
Operation: TOperation); override;
|
Operation: TOperation); override;
|
||||||
|
procedure Loaded; override;
|
||||||
public
|
public
|
||||||
constructor Create(TheOwner: TComponent); override;
|
constructor Create(TheOwner: TComponent); override;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
@ -456,6 +457,7 @@ Type
|
|||||||
Operation: TOperation); override;
|
Operation: TOperation); override;
|
||||||
procedure UpdateData(Sender: TObject); virtual;
|
procedure UpdateData(Sender: TObject); virtual;
|
||||||
procedure FocusRequest(Sender: TObject); virtual;
|
procedure FocusRequest(Sender: TObject); virtual;
|
||||||
|
procedure Loaded; override;
|
||||||
public
|
public
|
||||||
constructor Create(TheOwner: TComponent); override;
|
constructor Create(TheOwner: TComponent); override;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
@ -523,6 +525,7 @@ Type
|
|||||||
Operation: TOperation); override;
|
Operation: TOperation); override;
|
||||||
procedure UpdateData(Sender: TObject); virtual;
|
procedure UpdateData(Sender: TObject); virtual;
|
||||||
procedure FocusRequest(Sender: TObject); virtual;
|
procedure FocusRequest(Sender: TObject); virtual;
|
||||||
|
procedure Loaded; override;
|
||||||
public
|
public
|
||||||
constructor Create(TheOwner: TComponent); override;
|
constructor Create(TheOwner: TComponent); override;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
@ -629,6 +632,7 @@ Type
|
|||||||
procedure DataChange(Sender: TObject); virtual;
|
procedure DataChange(Sender: TObject); virtual;
|
||||||
procedure UpdateData(Sender: TObject); virtual;
|
procedure UpdateData(Sender: TObject); virtual;
|
||||||
procedure LoadPicture; virtual;
|
procedure LoadPicture; virtual;
|
||||||
|
procedure Loaded; override;
|
||||||
public
|
public
|
||||||
constructor Create(TheOwner: TComponent); override;
|
constructor Create(TheOwner: TComponent); override;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
@ -1066,6 +1070,9 @@ end.
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.12 2003/09/18 21:17:13 mattias
|
||||||
|
added DataChange after Loaded
|
||||||
|
|
||||||
Revision 1.11 2003/09/18 21:01:18 mattias
|
Revision 1.11 2003/09/18 21:01:18 mattias
|
||||||
started TDBImage
|
started TDBImage
|
||||||
|
|
||||||
|
@ -136,6 +136,13 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TDBCheckBox.Loaded;
|
||||||
|
begin
|
||||||
|
inherited Loaded;
|
||||||
|
if (csDesigning in ComponentState) then
|
||||||
|
DataChange(Self);
|
||||||
|
end;
|
||||||
|
|
||||||
function TDBCheckBox.ValueEqualsField(const AValue, AFieldText: string
|
function TDBCheckBox.ValueEqualsField(const AValue, AFieldText: string
|
||||||
): boolean;
|
): boolean;
|
||||||
begin
|
begin
|
||||||
|
@ -120,11 +120,18 @@ end;
|
|||||||
procedure TDBComboBox.FocusRequest(Sender: TObject);
|
procedure TDBComboBox.FocusRequest(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
//the FieldLink has requested the control
|
//the FieldLink has requested the control
|
||||||
//recieve focus for some reason..
|
//receive focus for some reason..
|
||||||
//perhaps an error occured?
|
//perhaps an error occured?
|
||||||
SetFocus;
|
SetFocus;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TDBComboBox.Loaded;
|
||||||
|
begin
|
||||||
|
inherited Loaded;
|
||||||
|
if (csDesigning in ComponentState) then
|
||||||
|
DataChange(Self);
|
||||||
|
end;
|
||||||
|
|
||||||
constructor TDBComboBox.Create(TheOwner: TComponent);
|
constructor TDBComboBox.Create(TheOwner: TComponent);
|
||||||
begin
|
begin
|
||||||
inherited Create(TheOwner);
|
inherited Create(TheOwner);
|
||||||
|
@ -92,6 +92,13 @@ begin
|
|||||||
Picture.Assign(FDataLink.Field);
|
Picture.Assign(FDataLink.Field);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TDBImage.Loaded;
|
||||||
|
begin
|
||||||
|
inherited Loaded;
|
||||||
|
if (csDesigning in ComponentState) then
|
||||||
|
DataChange(Self);
|
||||||
|
end;
|
||||||
|
|
||||||
constructor TDBImage.Create(TheOwner: TComponent);
|
constructor TDBImage.Create(TheOwner: TComponent);
|
||||||
begin
|
begin
|
||||||
inherited Create(TheOwner);
|
inherited Create(TheOwner);
|
||||||
|
@ -133,6 +133,13 @@ begin
|
|||||||
SetFocus;
|
SetFocus;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TDBMemo.Loaded;
|
||||||
|
begin
|
||||||
|
inherited Loaded;
|
||||||
|
if (csDesigning in ComponentState) then
|
||||||
|
DataChange(Self);
|
||||||
|
end;
|
||||||
|
|
||||||
destructor TDBMemo.Destroy;
|
destructor TDBMemo.Destroy;
|
||||||
begin
|
begin
|
||||||
FDataLink.Free;
|
FDataLink.Free;
|
||||||
|
@ -142,6 +142,13 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TDBRadioGroup.Loaded;
|
||||||
|
begin
|
||||||
|
inherited Loaded;
|
||||||
|
if (csDesigning in ComponentState) then
|
||||||
|
DataChange(Self);
|
||||||
|
end;
|
||||||
|
|
||||||
constructor TDBRadioGroup.Create(TheOwner: TComponent);
|
constructor TDBRadioGroup.Create(TheOwner: TComponent);
|
||||||
begin
|
begin
|
||||||
inherited Create(TheOwner);
|
inherited Create(TheOwner);
|
||||||
|
Loading…
Reference in New Issue
Block a user