Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
treenode font style
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
Lazarus Release 2.2.6
by
Phoenix
[
Today
at 10:00:35 am]
Synapse TCP/IP client and...
by
Phoenix
[
Today
at 09:57:18 am]
[Function References ] no...
by
Thaddy
[
Today
at 09:43:45 am]
fpc 3.3.1 or lazarus 2.3 ...
by
AlexTP
[
Today
at 09:38:21 am]
Dark Theme in my program?
by
d7_2_laz
[
Today
at 09:27:43 am]
Anyone know how to change...
by
Thaddy
[
Today
at 09:19:43 am]
Variables as indexes of a...
by
Nitorami
[
Today
at 08:19:33 am]
Question about IdMappedPo...
by
cappe
[
Today
at 06:18:55 am]
InterProcessCommunication...
by
tetrastes
[
Today
at 01:47:25 am]
StrComp problem
by
KodeZwerg
[
Today
at 01:36:55 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: treenode font style (Read 262 times)
fcu
Jr. Member
Posts: 82
treenode font style
«
on:
November 22, 2022, 04:16:32 pm »
Hi
how can i change a treenode font style , make it bold for example
like in the picture
Logged
jamie
Hero Member
Posts: 5197
Re: treenode font style
«
Reply #1 on:
November 23, 2022, 12:11:23 am »
Code: Pascal
[Select]
[+]
[-]
procedure
TForm1
.
TreeView1CustomDrawItem
(
Sender
:
TCustomTreeView
;
Node
:
TTreeNode
;
State
:
TCustomDrawState
;
var
DefaultDraw
:
Boolean
)
;
begin
With
TTreeView
(
Sender
)
do
Begin
If
Node
.
Parent
=
Nil
Then
Begin
font
.
color
:
=
clBlack
;
end
else
Font
.
Color
:
=
clgray
;
end
;
end
;
Set the NoThemeDraw to off in the Options of the Treeview.
Logged
The only true wisdom is knowing you know nothing
fcu
Jr. Member
Posts: 82
Re: treenode font style
«
Reply #2 on:
November 23, 2022, 07:12:12 am »
thanks jamie
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
treenode font style
TinyPortal
© 2005-2018