Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
borderless form: Delphi vs. Lazarus
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
Interesting video
by
Joanna
[
Today
at 03:30:11 am]
How to define a type of ...
by
Fibonacci
[
Today
at 03:22:26 am]
IndySecOpenSSL is now ava...
by
TheMouseAUS
[
Today
at 03:10:23 am]
Discipline your AI coding...
by
440bx
[
Today
at 02:44:06 am]
Version 4.8 was recently ...
by
Ten_Mile_Hike
[
Today
at 01:43:17 am]
Who can explain this ?
by
J-G
[
Today
at 01:02:01 am]
FPC Unleashed (inline var...
by
Fibonacci
[
Today
at 12:03:13 am]
[New Component] ExtTabCtr...
by
d7_2_laz
[June 10, 2026, 10:52:55 pm]
Conscious Artificial Inte...
by
schuler
[June 10, 2026, 09:11:29 pm]
TDWEdit
by
Ed78z
[June 10, 2026, 08:24:43 pm]
Trayslate 1.3.0 - Free tr...
by
AlexanderT
[June 10, 2026, 08:12:24 pm]
TShellListView
by
Ed78z
[June 10, 2026, 07:59:41 pm]
[SOLVED] Curious why this...
by
1HuntnMan
[June 10, 2026, 07:53:21 pm]
Toying Pascal Documenting...
by
paule32
[June 10, 2026, 05:22:32 pm]
Gitlab site history date.
by
Fred vS
[June 10, 2026, 05:07:59 pm]
Cursor changes to arrow o...
by
atlatl
[June 10, 2026, 05:02:45 pm]
Sizes and SizeInt
by
440bx
[June 10, 2026, 02:15:13 pm]
how to add a ForEach call...
by
jamie
[June 10, 2026, 12:42:04 pm]
XLibre, finally and fortu...
by
kagamma
[June 10, 2026, 12:15:10 pm]
[SOLVED] Watches panel is...
by
CM630
[June 10, 2026, 12:06:33 pm]
How to monitor changes in...
by
Martin_fr
[June 10, 2026, 11:55:18 am]
Printer Info
by
J-G
[June 10, 2026, 11:26:52 am]
Strange Behaviour at Runt...
by
andrew Bubble
[June 10, 2026, 11:19:45 am]
Can I get the position an...
by
CM630
[June 10, 2026, 11:00:33 am]
WEBP, no DLLs
by
CM630
[June 10, 2026, 08:52:43 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: borderless form: Delphi vs. Lazarus (Read 3392 times)
kirchfritz
Jr. Member
Posts: 74
WIN11 LAZ 2.2.4 FPC 3.2.2
borderless form: Delphi vs. Lazarus
«
on:
July 05, 2021, 04:41:08 pm »
Hi,
after studying a wonderful article about creating borderless forms with delphi
https://medium.com/@vuio/delphi-borderless-form-a2538e3ec48
I tried to translate the delphi source code to Lazarus/Freepascal source code.
My translation (see my attachement) was succesful, but my Lazarus program doesn't hide the form's captionbar.
Can anybody explain why my Lazarus program never received the WM_NCCALCSIZE message?
Fritz
Logged
jamie
Hero Member
Posts: 7765
Re: borderless form: Delphi vs. Lazarus
«
Reply #1 on:
July 05, 2021, 04:50:28 pm »
the LCL does not pass all messages along to the form, only the most common ones, those that are supported cross platform wise..
You need to hook the window procedure for that or use a Hook Lib that I have somewhere around here to make it easier.
Logged
The only true wisdom is knowing you know nothing
kirchfritz
Jr. Member
Posts: 74
WIN11 LAZ 2.2.4 FPC 3.2.2
Re: borderless form: Delphi vs. Lazarus
«
Reply #2 on:
July 07, 2021, 06:45:18 pm »
I am not familiar with hooking the windows procedure.
Can anybody help me?
Logged
jamie
Hero Member
Posts: 7765
Re: borderless form: Delphi vs. Lazarus
«
Reply #3 on:
July 07, 2021, 07:03:03 pm »
I've already posted this before, just searched the forums and couldn't find it..
so here is a demo and unit file of how to use it.
Logged
The only true wisdom is knowing you know nothing
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
borderless form: Delphi vs. Lazarus
TinyPortal
© 2005-2018