Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_CUROBJ to ActiveControl
Message
From
06/01/1998 15:41:51
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/01/1998 15:39:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00069672
Message ID:
00069894
Views:
62
>>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?
If you are already where yo want yes.
Ç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
Next
Reply
Map
View

Click here to load this message in the networking platform