Jump to content


Photo

CellHint only showing when column is enabled


  • Please log in to reply
1 reply to this topic

#1 Mountain

Mountain
  • Members
  • 8 posts

Posted 07 August 2020 - 11:39 AM

Hi,

 

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
  • 8,191 posts
  • Gender:Male

Posted 19 August 2020 - 12:24 AM

Hi,

 

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
Users Section: users.bergsoft.net
Articles and Tutorials: help.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.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users