Display Hint on a disabled GRID

2

Good afternoon,

I have a delphi application that has a grid with two columns, the first column being the "question" and the second column being the "answer". This grid has 8 lines and each line has a hint, that is, when I position the mouse on a line, a "balloon" with a brief explanation of the question is displayed.

This GRID has 3 modes: inclusion, change and display. When the GRID is in include and change mode, that is, when it is editable, hint appears normally. However, when in view mode, the grid is disabled (to prevent the change) and thus the hint is not displayed.

I think it's something native to delphi, which disables hint whenever the grid is disabled (enable = false).

I wonder if there is any way to change this. Is there a command in delphi that causes the hint of each field to be displayed when the grid is disabled?

Thanks in advance.

    
asked by anonymous 30.05.2017 / 22:00

1 answer

1

I do not think there's a way to display Hint on disabled components.

I needed something like this years ago ... and I found in a forum a way to get around the situation and it's pretty simple.

You will mask grid . It places your grid within panel , and size of panel you define of the size of grid . Then you disable grid and activate panel with hint grid .

    
21.12.2017 / 12:48