Why hack when, as Kyley has already suggested, you can simply download the Jedi library and **look** at the implementation to the TJvaCaptionButton to figure out how it's done? Perhaps you don't even need to reinvent the wheel, perhaps they might even provide a base-class that you can inherit from to get just the caption functionality you want?
-Andreas -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of vss Sent: Wednesday, 9 October 2002 09:13 To: Multiple recipients of list delphi Subject: Re: RE: [DUG]: Trapping when a window is repainted Ok. To clarify this more. YES it does, BUT if you have say a delphi app. that handles the drawing onto another form, the active one, because the delphi app. will be running hidden, it does not trap the active windows repaint or whatever messages. I actually found a hack for this, and thats to use a timer. If I draw the date and time onto the caption this works fine because the caption changes every second. Its alos flicker free which is good. Jeremy -----Original Message----- From: Chris Reynolds <[EMAIL PROTECTED]> To: Multiple recipients of list delphi <[EMAIL PROTECTED]> Date: Wed, 09 Oct 2002 09:01:23 +1300 Subject: Re: 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. > > > > I assume from that answer that TJvaCaptionButton doesn't capture the > form moves. Surprising! > > > > ----------------------------------------------------------------------- > ---- > 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/ --------------------------------------------------------------------------- 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/ --------------------------------------------------------------------------- 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/