Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
[SOLVED] How to change color of TSplitter?
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
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
WIKI Timeout issues
Please read here if you have trouble connecting to the wiki
Recent
Trouble compiling fpc for...
by
ccrause
[
Today
at 04:10:41 pm]
Persistent MacOS Arm M ch...
by
Thaddy
[
Today
at 03:53:25 pm]
Feature request: hard typ...
by
Martin_fr
[
Today
at 03:33:32 pm]
Converting excel to csv -...
by
paweld
[
Today
at 02:21:32 pm]
MDI ChildForm
by
Dzandaa
[
Today
at 01:40:35 pm]
Pappas Chain Ring: Not Ro...
by
Boleeman
[
Today
at 01:06:20 pm]
control '' has no parent
by
dbannon
[
Today
at 01:00:56 pm]
Creating .deb packages fo...
by
CM630
[
Today
at 12:36:36 pm]
controls.lpr(731,15) Erro...
by
tetrastes
[
Today
at 12:04:54 pm]
Lazarus IDE crashes ( Due...
by
Martin_fr
[
Today
at 11:38:05 am]
Hint windows misplaced an...
by
DimTim
[
Today
at 11:08:12 am]
Compiler don't know the S...
by
Khrys
[
Today
at 08:11:30 am]
activex.pp definition pro...
by
Thaddy
[
Today
at 08:04:36 am]
My DIY dynamic array occu...
by
Thaddy
[
Today
at 06:06:50 am]
Forte Report CE Questions
by
PascalProg
[
Today
at 01:32:42 am]
Canvas.PolyBezier
by
wp
[
Today
at 12:16:24 am]
InstallAware 2025 Sources...
by
msintle
[July 07, 2025, 11:49:05 pm]
[SOLVED] Lazarus IDE 4 UI...
by
Psacla_63
[July 07, 2025, 11:03:06 pm]
Conant Fractal (Close to ...
by
Boleeman
[July 07, 2025, 10:38:58 pm]
problem with certain char...
by
tetrastes
[July 07, 2025, 09:22:02 pm]
Fast Canvas Library V1.05...
by
Lulu
[July 07, 2025, 07:58:57 pm]
Library for drawing a pat...
by
gidesa
[July 07, 2025, 07:43:59 pm]
Sutcliffe Fractal: Anothe...
by
Joanna
[July 07, 2025, 02:16:29 pm]
Billowing Flower: A Tenta...
by
Joanna
[July 07, 2025, 02:13:22 pm]
Spiral Mandala Patterns o...
by
Boleeman
[July 07, 2025, 01:56:56 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] How to change color of TSplitter? (Read 1660 times)
Slyde
Full Member
Posts: 152
[SOLVED] How to change color of TSplitter?
«
on:
February 13, 2023, 06:20:00 pm »
In my small application, I'm giving the users the ability to set form color. And while I have this set
Code: Pascal
[Select]
[+]
[-]
Splitter1
.
Color
:
=
frmMain
.
Color
;
Splitter2
.
Color
:
=
frmMain
.
Color
;
it still stays dove grey, even though the form itself changed color. This is pretty straight-forward stuff, but it sure isn't working for me.
«
Last Edit: February 13, 2023, 06:37:46 pm by Slyde
»
Logged
Linux Mint 21.3
Lazarus 3.0
AlexTP
Hero Member
Posts: 2577
Re: How to change color of TSplitter?
«
Reply #1 on:
February 13, 2023, 06:28:06 pm »
Try this
Code: Pascal
[Select]
[+]
[-]
Splitter
.
OnPaint
:
=
@
SplitterOnPaintDummy
;
Splitter
.
Color
:
=
clRed
;
....
procedure
TfmMain
.
SplitterOnPaintDummy
(
Sender
:
TObject
)
;
begin
//empty, to disable themed paint
end
;
Logged
CudaText editor
-
ATSynEdit
-
More from me
Slyde
Full Member
Posts: 152
Re: How to change color of TSplitter?
«
Reply #2 on:
February 13, 2023, 06:37:15 pm »
That worked. I wldve never guessed to do that. I guess it's good to have that way, though, giving splitters an out if you want them to stay grey when the form color changes.
Thanks for the help.
«
Last Edit: February 13, 2023, 07:24:21 pm by Slyde
»
Logged
Linux Mint 21.3
Lazarus 3.0
Hansvb
Hero Member
Posts: 822
Re: [SOLVED] How to change color of TSplitter?
«
Reply #3 on:
May 02, 2024, 09:05:23 am »
Hi,
If I try the above, I lose the grip points. I assume that these also fall under the themed part. How can I change the color and keep the grip dots?
See the difference between left and right splitter. (Lazarus 3.0, win 11)
Logged
jamie
Hero Member
Posts: 6988
Re: [SOLVED] How to change color of TSplitter?
«
Reply #4 on:
May 02, 2024, 11:44:15 pm »
I just did old 2.0.4 laz and the trunk,. it works fine here , I can set it to any color without that hack.
So maybe something has changed in the widget between these two?
Logged
The only true wisdom is knowing you know nothing
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
[SOLVED] How to change color of TSplitter?
TinyPortal
© 2005-2018