mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 20:50:40 +02:00
unpublished dbedit.text property, dbedit show text at runtime only when it needs to (bug #1243)
git-svn-id: trunk@7853 -
This commit is contained in:
parent
e8f011bf1e
commit
abc306261e
@ -142,6 +142,7 @@ Type
|
|||||||
Operation: TOperation); override;
|
Operation: TOperation); override;
|
||||||
|
|
||||||
function EditCanModify: Boolean; override;
|
function EditCanModify: Boolean; override;
|
||||||
|
function GetEditText: string; override;
|
||||||
|
|
||||||
procedure Change; override;
|
procedure Change; override;
|
||||||
procedure Reset; override;
|
procedure Reset; override;
|
||||||
@ -180,7 +181,6 @@ Type
|
|||||||
property ShowHint;
|
property ShowHint;
|
||||||
property TabOrder;
|
property TabOrder;
|
||||||
property TabStop;
|
property TabStop;
|
||||||
property Text;
|
|
||||||
property Visible;
|
property Visible;
|
||||||
property OnChange;
|
property OnChange;
|
||||||
property OnClick;
|
property OnClick;
|
||||||
|
@ -182,6 +182,15 @@ begin
|
|||||||
Result := FDataLink.Edit;
|
Result := FDataLink.Edit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TDBEdit.GetEditText: string;
|
||||||
|
begin
|
||||||
|
if not (csDesigning in ComponentState) and not FDatalink.Active then begin
|
||||||
|
Result := '';
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
|
Result:=inherited GetEditText;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TDBEdit.Change;
|
procedure TDBEdit.Change;
|
||||||
begin
|
begin
|
||||||
//need to override this to make sure the datalink gets notified
|
//need to override this to make sure the datalink gets notified
|
||||||
|
@ -91,7 +91,6 @@ type
|
|||||||
function AddEditFormat(const Value: string; Active: Boolean): string;
|
function AddEditFormat(const Value: string; Active: Boolean): string;
|
||||||
function RemoveEditFormat(const Value: string): string;
|
function RemoveEditFormat(const Value: string): string;
|
||||||
function FindLiteralChar (MaskOffset: Integer; InChar: Char): Integer;
|
function FindLiteralChar (MaskOffset: Integer; InChar: Char): Integer;
|
||||||
function GetEditText: string;
|
|
||||||
function GetMasked: Boolean;
|
function GetMasked: Boolean;
|
||||||
function GetMaskText: string;
|
function GetMaskText: string;
|
||||||
function GetMaxLength: Integer;
|
function GetMaxLength: Integer;
|
||||||
@ -118,6 +117,7 @@ type
|
|||||||
procedure DoEnter; override;
|
procedure DoEnter; override;
|
||||||
procedure DoExit; override;
|
procedure DoExit; override;
|
||||||
procedure Reset; virtual;
|
procedure Reset; virtual;
|
||||||
|
function GetEditText: string; virtual;
|
||||||
function GetFirstEditChar: Integer;
|
function GetFirstEditChar: Integer;
|
||||||
function GetLastEditChar: Integer;
|
function GetLastEditChar: Integer;
|
||||||
function GetNextEditChar(Offset: Integer): Integer;
|
function GetNextEditChar(Offset: Integer): Integer;
|
||||||
|
Loading…
Reference in New Issue
Block a user