Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CTRL+C fireing keypress PAGEUP/PAGEDOWN
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
CTRL+C fireing keypress PAGEUP/PAGEDOWN
Miscellaneous
Thread ID:
00822938
Message ID:
00822938
Views:
76
My project has a textbox with a Keypress event coded to fire procedures when either PAGE DOWN or PAGE UP are pressed. When I press CTRL+C (to copy textbox contents), the Keypress event fires as if the PAGE DOWN KEY.

Also wierd: When I press CTRL+V, to paste, "DEFINE CLASS SUBTEXTBOX" the class definition header, appears in the field contents.
define class subTextBox as TextBox
format="R"
height=17
specialeffect=1
procedur KeyPress(nKeyCode, nShiftAltCtrl)
if nKeyCode=18
   SetFocusforPageKeys(this.name,val(this.parent.lblItemNo.Caption),-1)
else
if nKeyCode=3
   SetFocusforPageKeys(this.name,val(this.parent.lblItemNo.Caption),1)
else
endif
endif
endproc
enddefine
Imagination is more important than knowledge
Next
Reply
Map
View

Click here to load this message in the networking platform