From: Patrick Dunford [mailto:[EMAIL PROTECTED]]
>Thanks, that did the trick.

Oops, maybe premature... ":-)

>Why does TButton not use the csClickEvents in the ControlStyle?

Because the mechanism through which you receive clicks for a TButton is
different - it generates click events from a BN_CLICKED windows message,
which is the windows way of handling buttons, rather than via
WML_BUTTONDOWN, which is the default for a TControl.  It may be that now
you've included csClickEvents that you'll get two Clicks for every mouse
click, or perhaps one will be discarded, but you may still get strange
behaviour.  I haven't delved deeply enough to know the pitfalls of turning
csClickEvents on but I wouldn't assume it will be plain sailing.

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