Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
treenode font style
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
Setting TBitmap.PixelForm...
by
domasz
[
Today
at 12:20:37 am]
BGRABitmap - merge 2 imag...
by
domasz
[
Today
at 12:11:50 am]
Unicode resourcestring
by
KodeZwerg
[
Today
at 12:08:28 am]
Drawing a Box like MC
by
Blaazen
[
Today
at 12:00:59 am]
Type checking of units of...
by
qk
[February 03, 2023, 11:40:54 pm]
more UTF8 confusing
by
Bogen85
[February 03, 2023, 11:38:43 pm]
ATSynEdit pkg error
by
polpero
[February 03, 2023, 11:31:19 pm]
Help Needed: Cross Platfo...
by
Bogen85
[February 03, 2023, 11:12:55 pm]
informacion sobre actuali...
by
Bogen85
[February 03, 2023, 11:08:01 pm]
Menu Text Color - Once mo...
by
seany
[February 03, 2023, 10:28:28 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: treenode font style (Read 225 times)
fcu
Jr. Member
Posts: 80
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: 5069
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: 80
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