thats ok....maybe I was just not clear enough.

Jeremy

-----Original Message-----
From: "Kyley Harris" <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Wed, 9 Oct 2002 10:18:49 +1300
Subject: RE: [DUG]:  Trapping when a window is repainted

> Yes :) big trap. I was not very clear that you are referring to the
> captions of applications other than your own. good luck
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
> Behalf Of Kyley Harris
> Sent: Wednesday, 9 October 2002 10:12 a.m.
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: Trapping when a window is repainted
> 
> 
> :) 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
> 
>  
> 
>  <http://www.v8challengeskins.cjb.net/>
> -------------------------------------------------------------------
> 
> All email scanned with Nortons Antivirus 2002
> 
>  <http://www.v8challengeskins.cjb.net/>
> -------------------------------------------------------------------
> 
>  
> 
> 

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to