Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
GTK2: hint not showing for disabled control
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
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
Best practice memory mana...
by
alpine
[
Today
at 11:30:32 pm]
MSEide+MSEgui new release...
by
Fred vS
[
Today
at 11:25:32 pm]
Change the form name issu...
by
JuhaManninen
[
Today
at 11:17:13 pm]
Having issues with Lazaru...
by
hamacker
[
Today
at 11:09:44 pm]
Converting a string/index...
by
1HuntnMan
[
Today
at 11:05:18 pm]
dbtext doesn't change val...
by
rvk
[
Today
at 10:36:38 pm]
WRITE_EXTERNEL_STORAGE Fa...
by
Guser979
[
Today
at 10:12:06 pm]
recover old look
by
Paolo
[
Today
at 10:07:37 pm]
FpDebug unexpected Assemb...
by
440bx
[
Today
at 09:59:54 pm]
TBGRABitmap.TextSize retu...
by
circular
[
Today
at 09:45:47 pm]
How can I draw a rectangl...
by
Handoko
[
Today
at 07:49:27 pm]
OPC client with Lazarus
by
mrogerf
[
Today
at 07:17:10 pm]
TODBCConnection without O...
by
kedat
[
Today
at 07:11:18 pm]
Insert text into a Richme...
by
rcmz
[
Today
at 07:04:54 pm]
search and replace richme...
by
rcmz
[
Today
at 06:43:55 pm]
Poll: Watches and Display...
by
440bx
[
Today
at 06:20:50 pm]
Changes in form/datamodul...
by
af0815
[
Today
at 06:03:10 pm]
How to declare uninitiali...
by
Thaddy
[
Today
at 04:55:52 pm]
Save form contents to fil...
by
gjunk
[
Today
at 04:42:24 pm]
Random values of Extended...
by
fiscraliger
[
Today
at 04:10:57 pm]
How can I control "main m...
by
Gebo
[
Today
at 03:38:31 pm]
Ho Ho Ho IntraWeb in Laza...
by
wfbhappy
[
Today
at 03:32:34 pm]
Have anyone know how to t...
by
dseligo
[
Today
at 03:12:47 pm]
Question about OOP : hidi...
by
Joanna
[
Today
at 03:04:13 pm]
Component and GPL
by
ginoo
[
Today
at 01:59:49 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: GTK2: hint not showing for disabled control (Read 519 times)
zoltanleo
Sr. Member
Posts: 488
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(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW
Sorry for my bad English, I'm using translator
zoltanleo
Sr. Member
Posts: 488
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(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW
Sorry for my bad English, I'm using translator
zeljko
Hero Member
Posts: 1595
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: 488
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(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW
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