mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 12:18:03 +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;
|
||||
|
||||
function EditCanModify: Boolean; override;
|
||||
function GetEditText: string; override;
|
||||
|
||||
procedure Change; override;
|
||||
procedure Reset; override;
|
||||
@ -180,7 +181,6 @@ Type
|
||||
property ShowHint;
|
||||
property TabOrder;
|
||||
property TabStop;
|
||||
property Text;
|
||||
property Visible;
|
||||
property OnChange;
|
||||
property OnClick;
|
||||
|
@ -182,6 +182,15 @@ begin
|
||||
Result := FDataLink.Edit;
|
||||
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;
|
||||
begin
|
||||
//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 RemoveEditFormat(const Value: string): string;
|
||||
function FindLiteralChar (MaskOffset: Integer; InChar: Char): Integer;
|
||||
function GetEditText: string;
|
||||
function GetMasked: Boolean;
|
||||
function GetMaskText: string;
|
||||
function GetMaxLength: Integer;
|
||||
@ -118,6 +117,7 @@ type
|
||||
procedure DoEnter; override;
|
||||
procedure DoExit; override;
|
||||
procedure Reset; virtual;
|
||||
function GetEditText: string; virtual;
|
||||
function GetFirstEditChar: Integer;
|
||||
function GetLastEditChar: Integer;
|
||||
function GetNextEditChar(Offset: Integer): Integer;
|
||||
|
Loading…
Reference in New Issue
Block a user