Recent

Author Topic: Cell hints not working on spawned form  (Read 839 times)

RedOctober

  • Sr. Member
  • ****
  • Posts: 452
Cell hints not working on spawned form
« on: July 16, 2019, 03:46:14 am »
Platform:  Laz 1.8.4  FPC 3.0.4  OS: Windows Server 2016

Please see the attached.  The cell hints work on Form1.  Open Form3. Cell hints don't work.   Why not?

ShowHints for both forms is set to True.

This project was copied from wp's generous example project to solve a different problem I had yesterday.



wp

  • Hero Member
  • *****
  • Posts: 11854
Re: Cell hints not working on spawned form
« Reply #1 on: July 16, 2019, 10:19:37 am »
Since the LCL grids offer several kinds of hints you must decide which one you want to see: Check dgCellHints in the Options of the grid.

Note that your demo crashes for me when the mouse enters the grid. Add a "if Column = nil then exit" to the beginning of each DBGrid OnGetCellHint event handler.

RedOctober

  • Sr. Member
  • ****
  • Posts: 452
Re: Cell hints not working on spawned form
« Reply #2 on: July 16, 2019, 04:32:44 pm »
Works now.  Thank you.

 

TinyPortal © 2005-2018