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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
TSynEdit XML tag completi...
by
dsiders
[March 26, 2025, 11:57:47 pm]
Warning on identifier usa...
by
440bx
[March 26, 2025, 11:20:19 pm]
Fpcupdeluxe
by
TRon
[March 26, 2025, 11:07:43 pm]
/lib/x86_64-linux-gnu/lib...
by
TRon
[March 26, 2025, 10:55:08 pm]
Lazarus Release Candidate...
by
zeljko
[March 26, 2025, 10:14:14 pm]
Converting a Project from...
by
TRon
[March 26, 2025, 10:06:56 pm]
Programmatically trigger ...
by
Tommi
[March 26, 2025, 09:44:43 pm]
Weird error: component no...
by
jamie
[March 26, 2025, 09:36:56 pm]
Radio Buttons cause a "ST...
by
jamie
[March 26, 2025, 09:29:43 pm]
Planet designer
by
Lulu
[March 26, 2025, 07:40:54 pm]
I'm puzzled and bewildere...
by
cdbc
[March 26, 2025, 07:25:29 pm]
ld: library 'gtk-3' not f...
by
zeljko
[March 26, 2025, 07:10:52 pm]
Option "RemoveExpressionR...
by
Thaddy
[March 26, 2025, 07:03:42 pm]
basic question for good s...
by
Nicole
[March 26, 2025, 06:42:17 pm]
TStringGrid AlternateC...
by
Nicole
[March 26, 2025, 04:46:45 pm]
Lazarus Windows apps in M...
by
Xenno
[March 26, 2025, 04:36:19 pm]
Lazarus Release Candidate...
by
baldzhang
[March 26, 2025, 04:03:08 pm]
Displying tooltips for ea...
by
Zvoni
[March 26, 2025, 03:10:51 pm]
ParambyName - how to stri...
by
Zvoni
[March 26, 2025, 03:04:49 pm]
link error on Ubuntu 22.0...
by
tetrastes
[March 26, 2025, 02:06:17 pm]
A question on Modula2 vs ...
by
Thaddy
[March 26, 2025, 01:22:47 pm]
DateUtils *Span and *Betw...
by
Чебурашка
[March 26, 2025, 12:13:14 pm]
"database not open" - IBX...
by
Nicole
[March 26, 2025, 11:54:25 am]
How to Run Lazarus App wi...
by
incendio
[March 26, 2025, 04:59:33 am]
ADUG Symposium 2025 is on
by
Mathias Burbach
[March 26, 2025, 02:10:05 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Titlebar custom color (Read 1108 times)
Pe3s
Hero Member
Posts: 596
[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: 566
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: 566
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: 596
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