Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NODEFAULT in TreeView
Message
De
18/09/2001 09:43:00
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00557486
Message ID:
00557790
Vues:
13
Hi Sergey,

The native behavior of the dblclick on a node in a treeview control is to expand or collapse the node. Unlike a VFP control, this OLE control appears to execute it native behavior before, not after, the DblClick() method fires. Therefore, by the time any code in the DblClick() method is reached, the expand or collapse has already occurred.

I can easily reverse this by issuing a
this.Expanded = !( this.Expanded )
in the DblClick() method. The effect is a flicker visible to the user as the previous unwanted expand or collapse is reversed.

I am tying to prevent the flicker by preventing the expand/collapse from occuring in the first instance.

Another approach would be to lock the control from repainting using the LockUpdate API function. The problem again is that the unwanted native behavior has already occurred before the LockUpdate code is reached in the DblClick() method, so issuing a LockUpdate call in DblClick() is ineffective.

Thank you for your response. I hope you have an idea or two to share.

Regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform