Recent

Author Topic: Define background color for hint  (Read 261 times)

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 626
    • Double Dummy Solver - free download
Define background color for hint
« on: December 03, 2025, 07:04:00 am »
It's nice the way I can tailor the hint specifically for each cell when I mouse over a cell in a grid. How can I define the background color of the hint?  Mine are all a light blue and I'd like a lighter background?

Also, how to change the time between when the mouse is over a cell and when the hint appears? I'd like to shorten that time-gap.
Lazarus 3.8 FPC 3.2.2 x86_64-win64-win32/win64

Khrys

  • Sr. Member
  • ****
  • Posts: 366
Re: Define background color for hint
« Reply #1 on: December 03, 2025, 07:16:32 am »
The  OnShowHint  event is probably what you need - it gives you a pointer to the hint's info record containing properties like  HintColor  and  ReshowTimeout.

jamie

  • Hero Member
  • *****
  • Posts: 7382
Re: Define background color for hint
« Reply #2 on: December 04, 2025, 01:43:50 am »
Application.HintColor := ?

Screen.HintFont. ???????

Jamie
The only true wisdom is knowing you know nothing

Antek

  • Newbie
  • Posts: 4
Re: Define background color for hint
« Reply #3 on: December 04, 2025, 07:46:15 am »
Code: Pascal  [Select][+][-]
  1. procedure TForm1.FormShowHint(Sender: TObject; HintInfo: PHintInfo);
  2.  
  3. begin
  4.  
  5.  HintInfo^.HintColor:=clGreen;
  6.  
  7. end;

 

TinyPortal © 2005-2018