Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Miscellaneous
»
Suggestions
»
LCL
»
WindowProc Subclassing
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
Extended and XML Frames o...
by
matthius
[
Today
at 01:01:09 am]
var vs out (including "co...
by
440bx
[
Today
at 12:56:32 am]
Which Linux version
by
cdbc
[August 12, 2026, 11:22:16 pm]
Strangely - Not a questio...
by
Bart
[August 12, 2026, 10:26:58 pm]
Selected Text get number ...
by
Martin_fr
[August 12, 2026, 09:47:56 pm]
To DebugLn or not to Debu...
by
Martin_fr
[August 12, 2026, 09:01:02 pm]
Unleashed Pascal (async/a...
by
Martin_fr
[August 12, 2026, 08:54:07 pm]
New Big Integer library i...
by
ad1mt
[August 12, 2026, 07:16:56 pm]
The best name for procedu...
by
LemonParty
[August 12, 2026, 07:02:53 pm]
Why does Free Pascal use ...
by
440bx
[August 12, 2026, 07:02:28 pm]
[RE-SOLVED] Splitting an ...
by
madref
[August 12, 2026, 04:58:26 pm]
'ReadStr' ?
by
J-G
[August 12, 2026, 03:37:39 pm]
Fpcupdeluxe
by
DonAlfredo
[August 12, 2026, 02:20:26 pm]
Trayslate 1.5.0 - Free tr...
by
AlexanderT
[August 12, 2026, 02:18:28 pm]
TlsLib4Pascal
by
Xor-el
[August 12, 2026, 02:16:41 pm]
enable easy marker moveme...
by
Paolo
[August 12, 2026, 01:30:39 pm]
Error installing EyeCandy...
by
JuhaManninen
[August 12, 2026, 08:46:00 am]
Lazarus undead repository...
by
CM630
[August 11, 2026, 11:40:09 pm]
LRS Explorer
by
CM630
[August 11, 2026, 11:33:24 pm]
Identify network devices
by
Warfley
[August 11, 2026, 10:55:13 pm]
Lazarus Bugfix Release 4....
by
geraldholdsworth
[August 11, 2026, 04:55:42 pm]
[Solved[ How to define th...
by
Mike.Cornflake
[August 11, 2026, 03:42:11 pm]
Dataset EnableControls/Di...
by
Mike.Cornflake
[August 11, 2026, 03:37:42 pm]
Debugging in a real termi...
by
Martin_fr
[August 11, 2026, 02:59:09 pm]
how to bring in view the ...
by
Aruna
[August 11, 2026, 02:33:55 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: WindowProc Subclassing (Read 6697 times)
schu-r
Newbie
Posts: 3
WindowProc Subclassing
«
on:
August 08, 2006, 01:55:57 pm »
Hi
I Used to Subclass WindowProc for some Controls in Delphi to Write my own WindowHandler (of course I called the Base Window Handler after it) just to react on some Windowmessages.
But in Lazarus i cannot change the WindowProc Handler.
Is there a different Way to get to the window Messages of an individual Control?
Logged
Vincent Snijders
Administrator
Hero Member
Posts: 2661
RE: WindowProc Subclassing
«
Reply #1 on:
August 08, 2006, 02:36:56 pm »
You still can subclass the window procedure, using Windows.SetWindowLong.
Logged
felipemdc
Administrator
Hero Member
Posts: 3538
RE: WindowProc Subclassing
«
Reply #2 on:
August 08, 2006, 09:21:25 pm »
You can just override the default WindowProc, like this, on your TForm window:
TMainWindow = class(TForm)
......
public
{$IFDEF Win32}
procedure WndProc(var Message : TMessage); override;
{$ENDIF}
end;
Logged
schu-r
Newbie
Posts: 3
RE: WindowProc Subclassing
«
Reply #3 on:
August 09, 2006, 02:25:54 pm »
I need to set them at Runtime. Because I look at the Controls of a Form and then I decide which Controls to subclass. The code Searches all the Controls and Subclasses them.
This is a kind of LayoutManager similar to Java. It works so far in Delphi (can change the Look and Feel and even the behaviour of some Fields).
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Miscellaneous
»
Suggestions
»
LCL
»
WindowProc Subclassing
TinyPortal
© 2005-2018