Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
[SOLVED] Titlebar custom color
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
Problem with drawing orde...
by
wp
[
Today
at 12:57:00 am]
could Ardour's YTK be use...
by
robert rozee
[
Today
at 12:13:08 am]
GTK3 : Icons have borders...
by
zeljko
[March 14, 2026, 10:43:51 pm]
Initialization & finaliza...
by
Martin_fr
[March 14, 2026, 10:22:21 pm]
Getting results from sql ...
by
CraigC
[March 14, 2026, 08:15:54 pm]
Hello! Anything new?
by
440bx
[March 14, 2026, 07:51:50 pm]
CryptoLib4Pascal
by
Xor-el
[March 14, 2026, 06:17:32 pm]
Extended Module Player
by
Gigatron
[March 14, 2026, 05:32:06 pm]
CONCAT formula
by
wp
[March 14, 2026, 05:27:43 pm]
[AGGPas] Difference betwe...
by
Roland57
[March 14, 2026, 04:36:02 pm]
Questions about TFuncSeri...
by
wp
[March 14, 2026, 03:05:31 pm]
declaring Array
by
Thaddy
[March 14, 2026, 01:24:11 pm]
TChart: Wrong default val...
by
wp
[March 14, 2026, 11:30:54 am]
Text Fill (Memo)
by
paweld
[March 14, 2026, 09:09:13 am]
Qt6/Wayland clipboard: pa...
by
AlexTP
[March 14, 2026, 08:56:58 am]
Pocketbase
by
PierceNg
[March 14, 2026, 06:29:04 am]
ADUG Symposium 2026
by
Mathias Burbach
[March 14, 2026, 04:45:57 am]
Any way to "embed" Window...
by
jamie
[March 14, 2026, 12:55:37 am]
DataPort StopBits and Flo...
by
Thaddy
[March 13, 2026, 02:14:16 pm]
Lazarus Bugfix Release 4....
by
JuhaManninen
[March 13, 2026, 10:05:03 am]
88 year D. Knuth changes ...
by
Thaddy
[March 13, 2026, 07:31:38 am]
interface and GUID someth...
by
egsuh
[March 13, 2026, 03:31:00 am]
CADSys4 3D.
by
maurog
[March 13, 2026, 01:00:05 am]
UOS - pre-compiled librar...
by
Fred vS
[March 13, 2026, 12:34:06 am]
Pipewire API
by
Fred vS
[March 12, 2026, 10:11:02 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Titlebar custom color (Read 1534 times)
Pe3s
Hero Member
Posts: 641
[SOLVED] Titlebar custom color
«
on:
November 30, 2023, 09:25:32 pm »
Hello, I have a question: is it possible to change the color of the form's title bar?
«
Last Edit: December 01, 2023, 09:25:58 pm by Pe3s
»
Logged
domasz
Hero Member
Posts: 618
Re: Titlebar custom color
«
Reply #1 on:
November 30, 2023, 09:31:14 pm »
I don't think so, but:
Code: Pascal
[Select]
[+]
[-]
Panel1
.
Color
:
=
clRed
;
Panel1
.
Align
:
=
alTop
;
BorderStyle
:
=
bsNone
;
«
Last Edit: December 01, 2023, 02:34:51 pm by domasz
»
Logged
DreamVB
Full Member
Posts: 100
Re: Titlebar custom color
«
Reply #2 on:
December 01, 2023, 01:08:13 pm »
The above answer is your best bet and also good for cross-platform if your on Windows you chould try subclassing the form then set your own drawing methods but this maybe a lot of work if your not to good with api stuff. as said the above answer is better I did find this as an extra on bing uses the same method as above but also gies code for moving the form with the panel.
https://www.bing.com/search?q=change+color+or+title+bar+lazarus&FORM=AWRE
Logged
Dream Believe Achieve
domasz
Hero Member
Posts: 618
Re: Titlebar custom color
«
Reply #3 on:
December 01, 2023, 02:38:50 pm »
In Windows this can be used to move a form:
https://www.swissdelphicenter.ch/en/showcode.php?id=417
Logged
Pe3s
Hero Member
Posts: 641
Re: Titlebar custom color
«
Reply #4 on:
December 01, 2023, 09:25:41 pm »
Thank you for the discussions
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
[SOLVED] Titlebar custom color
TinyPortal
© 2005-2018