Re: avoid extra onclick event on runtime update of components


2006-05-03 01:44:31 AM
cppbuilder48
"Dre" < XXXX@XXXXX.COM >wrote in message
Quote
ClicksDisabled is available only for (descendants of) TButton.
ClicksDisabled is introduced in TButtonControl. TButton, TCheckBox, and
TRadioButton derive from TButtonControl.
Quote
- changing the ClicksDisabled property actualy calls some functions
No, it doesn't.
Quote
and this might be more overhead than simply copying/assigning a pointer?
Assigning the event handlers to NULL has slighly more overhead than setting
the ClicksDisabled property. A __closure is 64-bits. When you assign an
event handler, you are not assigning just 1 pointer. You are actually
setting 2 pointers simultaneously - the pointer to the method code for the
event handler to execute, and a pointer to the object that will be the
method's 'this' pointer.
Gambit