Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Re: Textbox and listbox
Message
From
01/10/1998 06:00:25
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonesia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: Textbox and listbox
Miscellaneous
Thread ID:
00142711
Message ID:
00142711
Views:
58
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
Next
Reply
Map
View

Click here to load this message in the networking platform