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
"set of": order of elemen...
by
440bx
[
Today
at 10:11:31 am]
Treeview: full-width back...
by
d7_2_laz
[
Today
at 09:57:32 am]
UADE Library
by
TRon
[
Today
at 09:27:13 am]
using RunCommand to wrap ...
by
nomorelogic
[
Today
at 09:10:57 am]
how to read cheque micr l...
by
Packs
[
Today
at 08:58:27 am]
User Domain
by
TRon
[
Today
at 08:49:48 am]
Unselect all rows in stri...
by
CM630
[
Today
at 08:12:06 am]
Bug in the formula MATCH
by
veb86
[
Today
at 07:28:39 am]
Error, the IF function do...
by
veb86
[
Today
at 06:47:30 am]
Source Editor - Open Sour...
by
n7800
[
Today
at 05:13:12 am]
Form Positioning (Run & D...
by
Tony Stone
[
Today
at 03:28:03 am]
StrToInt not raising an e...
by
ALLIGATOR
[
Today
at 03:17:25 am]
[solved] Issues was wrong...
by
What I can do
[
Today
at 01:03:09 am]
Specialisation doesn't se...
by
nixbody
[
Today
at 12:38:49 am]
visasession
by
Laksen
[
Today
at 12:03:45 am]
Please explain what is Po...
by
PascalDragon
[February 06, 2025, 11:03:56 pm]
Compile App Error
by
eldonfsr
[February 06, 2025, 10:03:23 pm]
ellipse ? off topic
by
d2010
[February 06, 2025, 09:10:42 pm]
Telegram bots API Wrapper
by
Renat.Su
[February 06, 2025, 07:51:49 pm]
Custom self drawn compone...
by
wp
[February 06, 2025, 06:29:29 pm]
working on multiple proje...
by
TRon
[February 06, 2025, 05:39:14 pm]
Problema como barra de ro...
by
mfdzerohour
[February 06, 2025, 05:14:28 pm]
image processing library
by
JernejL
[February 06, 2025, 04:27:07 pm]
Reading and writing AVIF ...
by
Tomxe
[February 06, 2025, 02:34:13 pm]
Pointer and/xor set failu...
by
BrunoK
[February 06, 2025, 12:41:51 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Titlebar custom color (Read 1012 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