Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
>>>I have some code, which is repeated in all grid columns in most grids all over the application. In trying to centralize this, to have the code in a single place (and, especially, not having to call a special program every time I add a grid column!), I experimented with BindEvent(). The code contains This. and ThisForm., which I managed to translate.
>>>
>>>But where I am stuck is that I don't think it possible to translate a NODEFAULT in the original code. This occurs in Header.MouseDown and in Text1.DblClick. It doesn't seem feasible to "send" the NODEFAULT from the delegate back to the calling object. Any ideas?
>>
>>
>>NODEFAULT it is useless in DblClick event
>
>Are you sure? - I believe the default action is to select a word, which I would rather avoid if the DblClick triggers some other action.
NODEFAULT in DblClick doesn't prevent selecting a word. You have to put the NODEFAULT in MouseDown to prevent that, which generally isn't something you want to do.
Tamar
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement