Recent

Author Topic: [Solved]valuelisteditor shows hint  (Read 372 times)

badmintonfan

  • New Member
  • *
  • Posts: 32
[Solved]valuelisteditor shows hint
« on: January 23, 2023, 02:58:57 pm »
How can valuelisteditor shows a hint for whole value string
« Last Edit: January 24, 2023, 05:17:54 am by badmintonfan »

Zvoni

  • Hero Member
  • *****
  • Posts: 1604
Re: valuelisteditor shows hint
« Reply #1 on: January 23, 2023, 03:33:03 pm »
Activate "goCellHints" in Options, and set Text in OnGetCellHint?
https://lazarus-ccr.sourceforge.io/docs/lcl/grids/tgetcellhintevent.html
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

wp

  • Hero Member
  • *****
  • Posts: 10489
Re: valuelisteditor shows hint
« Reply #2 on: January 23, 2023, 03:58:57 pm »
Set ValueListEditor.ShowHints=true and activate goTruncCellHints in ValueList.Options (you may also want to add goCellEllipsis to the Options).

https://wiki.lazarus.freepascal.org/Grids_Reference_Page#Cell_hints
« Last Edit: January 23, 2023, 04:03:20 pm by wp »

badmintonfan

  • New Member
  • *
  • Posts: 32
Re: valuelisteditor shows hint
« Reply #3 on: January 24, 2023, 05:16:22 am »
Set ValueListEditor.ShowHints=true and activate goTruncCellHints in ValueList.Options (you may also want to add goCellEllipsis to the Options).

https://wiki.lazarus.freepascal.org/Grids_Reference_Page#Cell_hints
I did check all above options but write ValueListEditor.ShowHints:=true manually on my code,whatever the property is true of false on the propterty pannel.
That is the reason,I think,it's a bugger

 

TinyPortal © 2005-2018