Jump to content


CellHint only showing when column is enabled

  • Please log in to reply
1 reply to this topic

#1 Mountain

  • Members
  • 7 posts

Posted 07 August 2020 - 11:39 AM



I have a grid with two columns. The first column has Enabled = False, and the second Enabled = True. The columns are like items and values in Registry or an ini-file. For some items I'd like to display a hint on what values are expected or valid.

The little red hint-indicator appears in the top right corner of the cells, but hints are not displayed.


I tracked it down to procedure TNxGridView6.SetHoverCell in unit NxGridView6.pas, specifically the following condition:

if IsSet(FHotCell)
  and Columns[FHotCell.X].Enabled then
Is there a reason why the column has to be enabled? In that case, shouldn't the hint-indicator be hidden too?
To make it work for me I have altered it to
if IsSet(FHotCell) then
//      and Columns[FHotCell.X].Enabled then


Maybe you'd like to change it in the official version? If not as I have then it could perhaps be done with a property named something like OnlyShowCellHintsForEnabledColumns?


Have a lovely day. :-)

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,912 posts
  • Gender:Male

Posted 19 August 2020 - 12:24 AM



The problem was that I have recently disabled this feature as it is considered as a bug :)


So I will need to think how to solve it better.

boki@bergsoft.net | LinkedIn Profile
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
BergSoft Facebook page
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users