Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Keypress and CTRL+F5
Message
From
25/11/2003 12:27:18
 
 
To
25/11/2003 12:24:02
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00853361
Message ID:
00853375
Views:
14
Sheesh, I just created a test form with a pageframe and entered code in the form's keypress to trap for CTRL+F5 and you are right, it does work. Must be something in my other form!

I just noticed on my form that if focus is on any page tab itself, then CTRL+F5 runs the keypress event of the form, but if focus is on any of the controls inside one of the pages, then it just beeps...however, pageup and pagedwn run the form's keypress no matter where focus is...


THANKS!

>hello tracy
>
>F5 (without the ctrl key pressed) = nkeycode = 115 (i think)
>F5 (with the ctrl key pressed) = nkeycode = 98
>
>that works fine on my machine (vfp6 sp 5)
>
>>Just out of curiosity, I would like to know what is causing this behavior or why it occurs. I have a pageframe on a form with 7 pages and I trap for the pageup and pagedwn key in the form's keypress event to switch pages. It works fine. However, I wanted to have the CTRL+F5 key combination perform the same function as pagedown. I entered code in the form's keypress event to trap for it, but it seems that pressing CTRL+F5 never activates the form's keypress for some reason. I ended up having to use ON KEY LABEL in the form's init to call a method of the form (where I put the code to change pages) to do as I needed and then set CTRL+F5 back in the form's unload event. Shouldn't pressing CTRL+F5 activate the form's keypress? I tried adding push key and pop key.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform