Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid1.column1.container1.check1.controlsource - HELP
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00204268
Message ID:
00204623
Vues:
15
><<snip>>
>
>Disregard my previous message. Never did figure out exactly what was wrong, but I deleted and then readded the class and it works great.
>
>Last problem (i hope), the down/up arrow do not move to the next/previous row in the container.checkbox. Do you have any keypress code or other code, to make the keys in container.check behave like textbox in a grid?
>
>thanks - brenda

You can try trapping the keystroke in the KeyPress event of the CheckBox.
LPARAMETERS nKeyCode, nShiftAltCtrl
do case
   case nKeyCode = 5  && up arrow
      skip -1
      if !bof()
         This.Parent.SetFocus()
      else
         locate
      endif
      nodefault
   case nKeyCode = 24  && down arrow
      skip
      if !eof()
         This.Parent.SetFocus()
      else
         skip -1
      endif
      nodefault
   case inlist(nKeyCode, 13, 32)  && Enter or Spacebar pressed
      This.Click()
   otherwise
      DoDefault()
endcase
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform