Recent

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

RedOctober

  • Sr. Member
  • ****
  • Posts: 254
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: 6016
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.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

RedOctober

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