Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Methods in grids
Message
From
20/12/2007 07:58:05
 
 
To
19/12/2007 20:04:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01276730
Message ID:
01276778
Views:
25
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform