Board index » cppbuilder » Re: A tale of 2 forms <that need to move together>

Re: A tale of 2 forms <that need to move together>


2004-04-08 06:11:10 AM
cppbuilder32
"Stephen R. Phillips" < XXXX@XXXXX.COM >wrote in message
Quote
Greetings I can't seem to find the event that's triggered
when a form is moved.
There is no event for that.
Quote
I have two forms (one visible and one invisible) that
need to move together. How do I do this?
You will have to intercept the WM_MOVE and WM_MOVING messages directly.
Gambit
 
 

Re:Re: A tale of 2 forms <that need to move together>

"Stephen R. Phillips" < XXXX@XXXXX.COM >wrote in message
Quote
Ok.. it could be worse thanks, I wish they would have put those
events into the VCL though I suppose I could add them with
a derived VCL form class it doesn't seem worth it :)
You don't need another form class. You already have a descendant available
whenever you create a new form. Just override its WndProc() method, or use
a MESSAGE_MAP, and handle the messages that way. If you want, you can add
appropriate event(s) to your existing form that are triggered by the message
handler(s).
Gambit