Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Re: Textbox and listbox
Message
De
01/10/1998 06:00:25
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonésie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: Textbox and listbox
Divers
Thread ID:
00142711
Message ID:
00142711
Vues:
59
Got it.....
Only one problem left, how to make the focus remain on current object even if I press up arrow or down arrow, without change the foucs to another object
I do like this ON a textbox.keypress :

WITH THISFORM
DO CASE
CASE nKeyCode=24 &&&& dOWN aRROW
IF .LIST1.LISTINDEX<>.LIST1.LISTCOUNT
.LIST1.LISTINDEX=.LIST1.LISTINDEX+1
ENDIF
THIS.SETFOCUS
CASE nKeyCode=5 &&&&UP ARROW
IF .LIST1.LISTINDEX<>.LIST1.LISTCOUNT
.LIST1.LISTINDEX=.LIST1.LISTINDEX-1
ENDIF
THIS.SETFOCUS
ENDCASE
ENDWITH

But still if I press up/down arrow, the focus move to another object.

TIA :)
Senna Dwipayana
Being good is better
Being better is a bless
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform