GTK2: hint not showing for disabled control
- Lazarus/FPC Version: <Lazarus trunk x86_64-linux main-2_3-1840-g0d94210f/FPC trunk>
- Operating System: <Debian 11/GTK2>
- CPU / Bitness: <amd 64>
What happens
I found a slightly strange behavior of the hint property for a disabled control. For win32/Сocoa, qt, qt5 widgetsets hint is displayed, for gtk2 it is not displayed.
What did you expect
Disabled gtk2 controls should display a hint, as it does for other widgetsets.
Steps to reproduce
Put to form two wincontrol (e.g. btnEnabled and btnDisabled), type next code:
procedure TForm1.FormCreate(Sender: TObject);
begin
with btnEnabled do
begin
ShowHint:= True;
Enabled:= True;
Hint:= 'This is an enabled control';
end;
with btnDisabled do
begin
ShowHint:= True;
Enabled:= False;
Hint:= 'This is disabled control';
end;
end;
Build and run application. Now try get tooltip for each controls
Attached files: