spktoolbar: Fix hint not always showing when the toolbar has its own hint. Issue #39022, patch by michalgw.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8236 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2022-03-26 22:06:28 +00:00
parent 7d70f69112
commit 862deb52cc

View File

@ -650,6 +650,9 @@ procedure TSpkToolbar.CMHintShow(var Message: TLMessage);
var
PanelIdx, ItemIdx: Integer;
begin
with TCMHintShow(Message).HintInfo^ do
if HintStr <> '' then
CursorRect := Rect(CursorPos.X, CursorPos.Y, CursorPos.X, CursorPos.Y);
inherited;
if TabIndex >= 0 then
begin