Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
GTK2: hint not showing for disabled control
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Regex
by
BubikolRamios
[
Today
at 01:56:07 am]
How to make a simple Link...
by
LadyLazar
[
Today
at 01:25:18 am]
[SOLVED]TCalendar : False...
by
LadyLazar
[
Today
at 01:22:35 am]
Improving custom message ...
by
pascal111
[
Today
at 12:50:07 am]
Problem has suddenly appe...
by
dbannon
[
Today
at 12:39:32 am]
MySQL or MariaDB
by
valdir.marcos
[June 29, 2022, 11:38:45 pm]
Can Absolute be used on s...
by
jamie
[June 29, 2022, 11:23:38 pm]
Hardening application aga...
by
Thaddy
[June 29, 2022, 08:52:36 pm]
TThreadID on Mac - insigh...
by
AlanTheBeast
[June 29, 2022, 07:53:23 pm]
Drawing a curved 'Arrow'
by
J-G
[June 29, 2022, 06:06:33 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: GTK2: hint not showing for disabled control (Read 223 times)
zoltanleo
Sr. Member
Posts: 408
GTK2: hint not showing for disabled control
«
on:
May 25, 2022, 05:46:56 pm »
Hi all.
I found a slightly strange behavior of the hint property for a disabled control. For win32/Сocoa widgetsets hint is displayed, for gtk2 it is not displayed.
Code: Pascal
[Select]
[+]
[-]
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
;
What behavior is considered a bug?
Logged
Win10 LTSC x64/Deb 11 amd64/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.7
Sorry for my bad English, I'm using translator
zoltanleo
Sr. Member
Posts: 408
Re: GTK2: hint not showing for disabled control
«
Reply #1 on:
May 25, 2022, 05:49:31 pm »
linux behavior
https://i.imgur.com/bMnSfsq.gif
+ test project
Logged
Win10 LTSC x64/Deb 11 amd64/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.7
Sorry for my bad English, I'm using translator
zeljko
Hero Member
Posts: 1262
Re: GTK2: hint not showing for disabled control
«
Reply #2 on:
May 25, 2022, 05:55:33 pm »
It works on qt,qt5,win32 and cocoa, so it's definitelly bug. Please open issue at bugtracker and attach provided project1.zip from here.
Logged
zoltanleo
Sr. Member
Posts: 408
Re: GTK2: hint not showing for disabled control
«
Reply #3 on:
May 25, 2022, 10:03:11 pm »
Done
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39772
Logged
Win10 LTSC x64/Deb 11 amd64/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.7
Sorry for my bad English, I'm using translator
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
GTK2: hint not showing for disabled control
TinyPortal
© 2005-2018