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
Result not being set in c...
by
Martin_fr
[
Today
at 12:44:59 pm]
Lazarus Release Candidate...
by
Martin_fr
[
Today
at 12:34:17 pm]
Access violation
by
Nimbus
[
Today
at 12:08:19 pm]
Copying records with dyna...
by
McDoob
[
Today
at 11:11:41 am]
The Silver Coder on YouTu...
by
d2010
[
Today
at 10:24:31 am]
UK's Online Safety Act
by
MarkMLl
[
Today
at 09:54:50 am]
Resolving procedure symbo...
by
440bx
[
Today
at 07:59:10 am]
[AI][Machine Learning] Te...
by
hshatti
[
Today
at 06:34:31 am]
Guide Lines Behavior
by
majolika
[
Today
at 06:11:12 am]
Trying to save an Animate...
by
zxandris
[
Today
at 04:58:36 am]
Trying to Write, Readable...
by
zxandris
[
Today
at 04:05:35 am]
LCL Web Native with D2Bri...
by
talisjonatas
[
Today
at 01:58:42 am]
TDBEdit uneditable
by
korba812
[
Today
at 12:19:36 am]
constref and assembler x6...
by
ASerge
[January 24, 2025, 11:50:46 pm]
Synedit wordwrap
by
Martin_fr
[January 24, 2025, 10:26:36 pm]
application->terminate ma...
by
MarkMLl
[January 24, 2025, 09:42:14 pm]
Lazarus Bugfix Release 3....
by
Martin_fr
[January 24, 2025, 09:38:45 pm]
Drawing with psInsidefram...
by
Jonny
[January 24, 2025, 08:20:18 pm]
AVRPascal – free code edi...
by
ackarwow
[January 24, 2025, 07:49:52 pm]
Threads window (in Debug ...
by
erol
[January 24, 2025, 06:31:17 pm]
Help with tablayout.getti...
by
Narciso
[January 24, 2025, 05:29:43 pm]
مشكلة في التقارير
by
Gebo
[January 24, 2025, 05:25:14 pm]
Conditional variable defi...
by
TRon
[January 24, 2025, 04:50:00 pm]
Problem with TTabControl
by
MISV
[January 24, 2025, 02:12:53 pm]
Getting format error load...
by
MISV
[January 24, 2025, 02:07:44 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Titlebar custom color (Read 997 times)
Pe3s
Hero Member
Posts: 590
[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: 554
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: 554
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: 590
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