Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controls w/o focus
Message
De
28/12/2004 11:33:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00972596
Message ID:
00972603
Vues:
20
>I'm trying to attach a right-click menu to a textbox that is enabled but read-only (I hate the look of disabled controls) but can't seem to find a way to keep the control from getting focus. I normally put Return .F. in the When event for read-only controls, but that prevents the click events from firing. Is there a way to have a textbox fire it's right-click method without the control getting focus?

Setting the property
TabStop = .F.
will disallow selecting an object with the Tab key, but you can still activate it with the mouse.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform