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
Recent
class not found
by
cdbc
[
Today
at 06:55:15 pm]
A collection of daily *NI...
by
Roland57
[
Today
at 06:40:37 pm]
Pipewire API
by
Fred vS
[
Today
at 05:47:15 pm]
[ANN] PasBuild 1.6.0 rele...
by
cdbc
[
Today
at 05:07:14 pm]
ShortStrings vs long stri...
by
marcov
[
Today
at 03:30:18 pm]
88 year D. Knuth changes ...
by
Curt Carpenter
[
Today
at 03:08:55 pm]
[ANN] PasBuild 1.5.0 rele...
by
Graeme
[
Today
at 02:30:32 pm]
CADSys4 3D.
by
zamtmn
[
Today
at 02:13:31 pm]
Synchronizing Lazarus pro...
by
marcov
[
Today
at 01:09:21 pm]
Need help with project ma...
by
dseligo
[
Today
at 12:12:04 pm]
Debian removes FPC/Lazaru...
by
marcov
[
Today
at 11:58:36 am]
Qt6/Wayland clipboard: pa...
by
zeljko
[
Today
at 11:53:24 am]
Questions about TFuncSeri...
by
hedgehog
[
Today
at 09:50:46 am]
macOS 14+ Install Instruc...
by
CM630
[
Today
at 07:56:45 am]
Any way to "embed" Window...
by
egsuh
[
Today
at 05:13:50 am]
Update a table with an Au...
by
CraigC
[March 10, 2026, 10:54:23 pm]
TSplitter color property ...
by
backprop
[March 10, 2026, 08:43:28 pm]
Z80 ZX Spectrum and Syste...
by
Cascade
[March 10, 2026, 08:22:14 pm]
could Ardour's YTK be use...
by
robert rozee
[March 10, 2026, 03:18:36 pm]
[revisited] triple click
by
Thaddy
[March 10, 2026, 01:08:40 pm]
Hello! Anything new?
by
JuhaManninen
[March 10, 2026, 11:22:16 am]
C/C++ code to Object Pasc...
by
domasz
[March 10, 2026, 10:44:20 am]
[Solved] Saving a workboo...
by
Kaljakoira
[March 10, 2026, 09:09:59 am]
Good GPU accelerated math...
by
myisjwj
[March 10, 2026, 03:17:06 am]
REST Server/Client, how t...
by
valdir.marcos
[March 09, 2026, 10:18:36 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] How to change color of TSplitter? (Read 1851 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: 2678
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: 894
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: 7600
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