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
Fast Canvas Library V1.05...
by
backprop
[
Today
at 03:19:31 am]
TurboBird for FireBird 5
by
maurog
[
Today
at 02:28:10 am]
Status of FPC 3.4.0 or FP...
by
Graeme
[
Today
at 01:53:52 am]
TurboBird IBX
by
maurog
[
Today
at 01:53:39 am]
lazarus structure
by
crownfield
[
Today
at 12:28:23 am]
Delphi Magazine issues 1-...
by
simone
[February 16, 2026, 11:49:11 pm]
LazSerial not found
by
CM630
[February 16, 2026, 10:00:08 pm]
Duplicated icon in the Wi...
by
n7800
[February 16, 2026, 09:31:22 pm]
"PPU file isn't found by ...
by
Martin_fr
[February 16, 2026, 09:29:59 pm]
Reporting a Bug? in Strin...
by
Bart
[February 16, 2026, 06:47:13 pm]
[ANN] fpGUI Toolkit v2.0....
by
cdbc
[February 16, 2026, 06:45:05 pm]
Free Pascal for a small e...
by
devEric69
[February 16, 2026, 06:13:48 pm]
Datatype of Fields in sql...
by
Hansvb
[February 16, 2026, 06:10:23 pm]
Onguard Win64
by
AgriMensor
[February 16, 2026, 05:55:41 pm]
We are starting to use La...
by
JuhaManninen
[February 16, 2026, 04:11:47 pm]
Duplicate identifier erro...
by
Martin_fr
[February 16, 2026, 04:03:10 pm]
Frustrating Error When us...
by
TYDQ
[February 16, 2026, 02:50:02 pm]
[AGGPas] Difference betwe...
by
wp
[February 16, 2026, 02:15:23 pm]
[AGGPas] Usage of scale m...
by
Roland57
[February 16, 2026, 11:33:08 am]
makefiles
by
valdir.marcos
[February 16, 2026, 11:24:17 am]
ThorVG - test (lightweigh...
by
valdir.marcos
[February 16, 2026, 11:19:41 am]
Problems in drawing an ar...
by
valdir.marcos
[February 16, 2026, 11:18:39 am]
AI to port DBDesigner For...
by
Graeme
[February 16, 2026, 10:26:15 am]
Select rectangle of the i...
by
valdir.marcos
[February 16, 2026, 10:01:09 am]
DCPcrypt v2.0.6 — Cryptog...
by
valdir.marcos
[February 16, 2026, 09:55:55 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Titlebar custom color (Read 1496 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: 616
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: 616
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