Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent clicking into textbox on grid?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00043876
Message ID:
00043880
Vues:
48
>Someone must have seen this:
>
>I have created a grid that has several columns. Some columns are designed to be editable and several are designed to be read-only (like the columns you would freeze on the left side of a spreadsheet). I have set the tabstop for the textbox in the readonly columns to be .F., plus readonly=.T. and enabled=.F. and it does not let me TAB into them (this is the good news). However, if I mouse click into these textboxes, it highlights them (in off-color) and appears as if the cell has the focus (they are still read-only), even though the GOTFOCUS of the textbox for the cell does not fire (so it really doesn't have the focus).
>
>I don't want the users to be able to get into my read-only columns with tabs or the mouse! Can anyone shed some light on how to prevent these text boxes getting this "ghost-focus" - it would be best if the click had no affect, and focus remained on the previously highlighted valid editing cell?

Chris, keyboard a TAB in the WHEN method. Whether the user enters the field with TAB or MOUSE, he'll be moved to the next field. If the click on the column, hold down the mouse and drag, they CAN highlight the field, but only until they release the mouse key. Then - on to the next column.
WHEN Method 
keyboard '{tab}' CLEAR
return .t.
HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform