Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controlling Focus
Message
From
30/09/1998 12:35:04
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
30/09/1998 12:25:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00142388
Message ID:
00142463
Views:
21
>>Instead isn't it easier moving THISFORM.cbNext.SetFocus to lostfocus of this. Or are you trying this control also lose focus when LEN(TRIM(THIS.text)) = len(this.inputmask) ?
>>Cetin
>
>The problem is if the user goes back to THIS and then clicks on another control or uses up-arrow, Shift+Tab, etc to change the focus, his focus will automatically go to THISFORM.cbNext.
>
>Werner
Yes,
But in lostfocus you could trap it :
#define shifttab ??? 
#define uparrow  ???
if !inlist(lastkey(),shifttab,uparrow) and !mdown()
  nodefault
  thisform.cbNext.setfocus()
endif
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform