Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why does {alt+} throw away activecontrol?
Message
From
18/06/2002 09:30:15
 
 
To
15/06/2002 23:39:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00668976
Message ID:
00669691
Views:
22
{Alt+} shortcuts are used for menus. Pressing and holding alt activates the menubar area. This is standard Microsoft Windows behaviour. See

http://www.microsoft.com/windows2000/en/server/help/default.asp?url=/windows2000/en/server/help/keys_general.htm

(This is the online help for Windows 2000 Server but similar topics are presented in all versions since Windows 95)

>I have fixed this problem, but I want to know why it happens.
>
>Define myChkBox as ChkBox
>  Caption = 'Re\<fused'      && User can press {alt+f} to toggle value
>  Procedure When()
>    local lo
>    lo = Thisform.ActiveControl
>    This.Value = !This.Value
>    lo.SetFocus()
>    Return .F.
>  EndProd
>EndDefine
>
>This works just fine when the user clicks on the chkBox with the mouse, but if the user uses {alt+f} to do it, error "ACTIVECONTROL IS NOT AN OBJECT" and debugger shows "" for ActiveControl.
>
>Why does the keyboard shortcut throw away the ActiveControl?
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform