mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 17:50:19 +02:00
merge r55716 #bdb91bdc6d
lcl: edit: force show texthint in InitializeWnd. Issue #32053 git-svn-id: branches/fixes_1_8@55741 -
This commit is contained in:
parent
5309d6767d
commit
547fe3cdbe
@ -53,7 +53,8 @@ begin
|
|||||||
if WidgetSet.GetLCLCapability(lcTextHint) = LCL_CAPABILITY_YES then
|
if WidgetSet.GetLCLCapability(lcTextHint) = LCL_CAPABILITY_YES then
|
||||||
TWSCustomEditClass(WidgetSetClass).SetTextHint(Self, FTextHint)
|
TWSCustomEditClass(WidgetSetClass).SetTextHint(Self, FTextHint)
|
||||||
else
|
else
|
||||||
if CanShowEmulatedTextHint then ShowEmulatedTextHint;
|
if CanShowEmulatedTextHint then
|
||||||
|
ShowEmulatedTextHint(True);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
@ -691,11 +692,11 @@ begin
|
|||||||
DebugLn('TCustomEdit.TextHintFontStyle is deprecated and will be removed in Lazarus 1.9');
|
DebugLn('TCustomEdit.TextHintFontStyle is deprecated and will be removed in Lazarus 1.9');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCustomEdit.ShowEmulatedTextHint;
|
procedure TCustomEdit.ShowEmulatedTextHint(const ForceShow: Boolean);
|
||||||
var
|
var
|
||||||
HintFont: TFont;
|
HintFont: TFont;
|
||||||
begin
|
begin
|
||||||
if (FEmulatedTextHintStatus<>thsHidden) then
|
if (FEmulatedTextHintStatus<>thsHidden) and not ForceShow then
|
||||||
Exit;
|
Exit;
|
||||||
|
|
||||||
FEmulatedTextHintStatus := thsChanging;
|
FEmulatedTextHintStatus := thsChanging;
|
||||||
|
@ -731,7 +731,7 @@ type
|
|||||||
FTextHint: TTranslateString;
|
FTextHint: TTranslateString;
|
||||||
function GetTextHintFontColor: TColor; //Remove in 1.9
|
function GetTextHintFontColor: TColor; //Remove in 1.9
|
||||||
function GetTextHintFontStyle: TFontStyles; //Remove in 1.9
|
function GetTextHintFontStyle: TFontStyles; //Remove in 1.9
|
||||||
procedure ShowEmulatedTextHint;
|
procedure ShowEmulatedTextHint(const ForceShow: Boolean = False);
|
||||||
procedure HideEmulatedTextHint;
|
procedure HideEmulatedTextHint;
|
||||||
procedure SetAlignment(const AValue: TAlignment);
|
procedure SetAlignment(const AValue: TAlignment);
|
||||||
function GetCanUndo: Boolean;
|
function GetCanUndo: Boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user