Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-08

Can someone set me on the right path...

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jeffrey A. Wormsley

I am trying to get a TForm up under pure Win32 via LCL, and am havining some problems... At some point, I need to create a message handler for the form, but I am unsure how to do this, or where it goes. I can create a window and assign the handle to the form's FClientHandle, but I do not know how to set the underlying TComponent's FWindowProc, or even what it should be set to. I can define a message handler, but can the same code be used for more than one form? I have to admit I'm lost here. I can send anyone willing to help what I have so far (gtk converted to win32, then commented out 95%).

Jeff.

Reply by email

Pascal Dutilleul

I think you should write the whole message dispatching routines yourself.

If you have Delphi 3 : look into the help and follow Help -> contents -> developing applications -> creating custom components ->Handling messages

There you can read all about MainWndProc, WndProc, Dispatch, Handler, ...

Pascal

--- "Jeffrey A. Wormsley" wrote 20 lines
I am trying to get a TForm up under pure Win32 via LCL, and am havining some problems... At some point, I need to create a message handler for the form, but I am unsure how to do this, or where it goes. I can create a window and assign the handle to the form's FClientHandle, but I do not know how to set the underlying TComponent's FWindowProc, or even what it should be set to. I can define a message handler, but can the same code be used for more than one form? I have to admit I'm lost here. I can send anyone willing to help what I have so far (gtk converted to win32, then commented out 95%). Jeff.

_____________________________________________________________ Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

Reply by email