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
How to compare floating p...
by
creaothceann
[
Today
at 02:14:30 pm]
Getting name / line of ca...
by
Thaddy
[
Today
at 01:58:46 pm]
Label with multiple lines...
by
paweld
[
Today
at 12:39:49 pm]
[Solved] TStringGrid disp...
by
jcmontherock
[
Today
at 11:30:47 am]
FPC Unleashed (inline var...
by
LeP
[
Today
at 11:25:41 am]
Pascal port of Unishox2
by
AlexTP
[
Today
at 10:29:01 am]
Qt does not position form...
by
zeljko
[
Today
at 09:05:06 am]
P.I.S.S. a PlugIn-framewo...
by
cdbc
[
Today
at 07:59:58 am]
Limiting Search in TSelec...
by
dsiders
[
Today
at 05:29:01 am]
using make with a differe...
by
Thausand
[
Today
at 12:04:50 am]
RunFormula: math expressi...
by
valdir.marcos
[May 10, 2026, 10:49:20 pm]
Help with FPReport data b...
by
Dankan1890
[May 10, 2026, 10:08:22 pm]
Scripts to generate ofici...
by
marcov
[May 10, 2026, 09:28:54 pm]
How do 'with' statements ...
by
Warfley
[May 10, 2026, 09:13:18 pm]
FpDebug for Linux AARCH64
by
Martin_fr
[May 10, 2026, 08:21:58 pm]
Application.QueueAsyncCal...
by
Thaddy
[May 10, 2026, 03:17:23 pm]
Windows API Hooking/DLL I...
by
Thaddy
[May 10, 2026, 01:08:56 pm]
TComboBoxEx & TCheckCombo...
by
Paolo
[May 10, 2026, 11:28:00 am]
DataPort or Synpase stat...
by
serbod
[May 10, 2026, 09:30:51 am]
SynEdit auto End of line ...
by
Martin_fr
[May 10, 2026, 09:08:36 am]
Show Case: WritingTool
by
ginoo
[May 10, 2026, 08:47:02 am]
How to view the TODO list...
by
Thaddy
[May 10, 2026, 07:16:27 am]
International Pascal Cong...
by
Mike.Cornflake
[May 09, 2026, 06:45:37 pm]
SpreadSheet Add Chart Lin...
by
eldonfsr
[May 09, 2026, 06:19:33 pm]
How to access inherited m...
by
Thaddy
[May 09, 2026, 04:12:38 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: borderless form: Delphi vs. Lazarus (Read 3317 times)
kirchfritz
Jr. Member
Posts: 71
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: 7695
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: 71
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: 7695
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