From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
>This is from a blank form, at runtime it creates a button having overridden
the 
>DblClick method inherited from TControl.
>
>TControl calls the DBlClick method when the control is double clicked. It
isn't 
>reimplemented in its descendant TButtonControl or TButton.
>
>By overriding the DblClick method in my descendant class this new method
should 
>be called when a double click takes place on the TButton. However this
doesn't 
>appear to be occurring. Any ideas? I missed something?

You need to re-include csClickEvents in TMyButton.ControlStyle, 'cos TButton
turns it off.

Cheers,
Carl
---------------------------------------------------------------------------
    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"

Reply via email to