mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 02:00:28 +02:00
TApplication: adjust position of THintWindow depending on LTR or RTL alignment.
git-svn-id: trunk@43368 -
This commit is contained in:
parent
9e3191112e
commit
2937458fa6
@ -842,7 +842,11 @@ begin
|
||||
// calculate the width of the hint based on HintStr and MaxWidth
|
||||
with HintInfo do
|
||||
HintWinRect := FHintWindow.CalcHintRect(HintMaxWidth, HintStr, HintData);
|
||||
OffsetRect(HintWinRect, HintInfo.HintPos.X, HintInfo.HintPos.Y);
|
||||
//Position HintWindow depending on LTR/RTL
|
||||
if FHintWindow.UseRightToLeftAlignment then
|
||||
OffsetRect(HintWinRect, HintInfo.HintPos.X - (HintWinRect.Right - HintWinRect.Left), HintInfo.HintPos.Y)
|
||||
else
|
||||
OffsetRect(HintWinRect, HintInfo.HintPos.X, HintInfo.HintPos.Y);
|
||||
//DebugLn(['TApplication.ShowHintWindow HintStr="',HintInfo.HintStr,'" HintWinRect=',dbgs(HintWinRect)]);
|
||||
|
||||
FHintWindow.Color := HintInfo.HintColor;
|
||||
|
Loading…
Reference in New Issue
Block a user