Title: Message
:) my point was that this object showed everything in relation to the job you wish to accomplish. ie drawing and message capturing. I can only assume that you need to capture these messages because your text is not staying where you put it.
This object covers everything you need as an example.
 
if you want a more simple approach. then look at overriding the SetBounds Method. or creating a WM_PAINT, WM_REPAINT event on the form to override the existing. examples of this are throughout the VCL.
 
unless I am missing the point of why you need to capture the move and paint messages, hopefully this helps
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Jeremy Coulter
Sent: Tuesday, 8 October 2002 11:36 p.m.
To: Multiple recipients of list delphi
Subject: RE: [DUG]: Trapping when a window is repainted

Umm....read the message again....I already KNOW how to put text on the caption. I want to trap when the active window is moved or repainted.
 
Jeremy
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Kyley Harris
Sent: Tuesday, 8 October 2002 23:30
To: Multiple recipients of list delphi
Subject: RE: [DUG]: Trapping when a window is repainted

try Jedi library TJvaCaptionButton which places a button there. It would be a simple process to convert this to a caption/ message component instead of a button.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Jeremy Coulter
Sent: Tuesday, 8 October 2002 11:10 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: Trapping when a window is repainted

Hi all.
Well, after having a wee bit of spare time.....FINALLY....I have been having a play with a wee idea I wanted to look at for ages.
What I wanted to do, was draw some text on the caption of the active window.
I have a wee app. that outputs some data that I would like displayed on every active forms caption, just to the left of the minimize, maximize and close window.
I have been able to do this. Its actually quite easy.
BUT, what I want to know IS, is there a way to trap the windows messages for that window? i.e. if the form is moved, so I can redraw the text back onto the caption bar.
Can I trap these messges with windows hooks, i.e. create a DLL to do the journalrecord stuff?
 
Thanks,
 

Jeremy Coulter

 

-------------------------------------------------------------------

All email scanned with Nortons Antivirus 2002

-------------------------------------------------------------------

 

Reply via email to