Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Methods in grids
Message
De
20/12/2007 07:58:05
 
 
À
19/12/2007 20:04:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01276730
Message ID:
01276778
Vues:
20
>Supose I have a grid with ColumnCount = 10.
>number
>name
>phone
>...
>
>I want that when user press a key over each one of the columns, I can use the KeyPress method to process like this:
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>IF nKeyCode = ...
> ... do something
>ENDIF
>
>How can I assign this code to all keypressed methods at once?
>
Oi...

neste forum o idioma pode ser portugues........

o grid tem uma distribuição assim:
GRID
    COLUMN1
        Header1
        Text1 (ou objeto equivalente)
coloque no method keypress do 'Text1' se for uma lógica relacionada somente ao 'text1' (nível de dado) ou coloque no keypress do 'GRID' se for algo relacionado ao manuseio e comportamento do GRID

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform