Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_CUROBJ to ActiveControl
Message
From
06/01/1998 15:39:47
 
 
To
06/01/1998 15:18:18
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00069672
Message ID:
00069891
Views:
58
>what is special with it is when you press dnarrow and call setfocus, focus is set to text2 and than normal (default) behaviour of DnArrow is executed. You should somewhat absorb it (nodefault) if you don't want it to happen. It is like with no keypress you are in text2 pressing dnarrow.
>In "do case" also you should use "nodefault" after "case" statement if you don't want the default behaviour of key.
>*keypress

>do case
> case nKeycode = 28 && F1
> ..
> thisform.oObject.setfocus && Than default for F1 fires (help)
> case nKeyCode = 122 && "z"
> nodefault && Char "z" absorbed
> thisform.oObject.setfocus && W/o nodefault "z" would be written in oObject.value (if applicable)
>...
>endcase

Just using nodefault does what I want so I guess I don't even need to use SetFocus - Right?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform