Recent

Author Topic: [SOLVED]Define background color for hint  (Read 415 times)

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 630
    • Double Dummy Solver - free download
[SOLVED]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.
« Last Edit: December 09, 2025, 05:54:40 pm by bobonwhidbey »
Lazarus 3.8 FPC 3.2.2 x86_64-win64-win32/win64

Khrys

  • Sr. Member
  • ****
  • Posts: 381
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: 7493
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

  • New member
  • *
  • Posts: 9
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