Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Move a control by arrow keys
Message
 
To
21/05/2004 15:31:19
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00906096
Message ID:
00906130
Views:
25
Hi,

I just set KeyPreview of the form to true and it worked.

Thanks any way

>Have you tried putting your code into a function and using 'ON KEY LABEL LEFTARROW' (etc) to call the function?
>
>Alan
>
>>Hi Sergey,
>>
>>This is a form with 256 shapes which represent 256 colors. Right now I move between these shapes by clicking mouse on them (another shape will be shown around the active color). This is easy by mouse, but I want to do it like what we do in GetColor() form by pressing arrow keys. I put codes in Keypress method of the form, but when I apply arrow keys, it switches between my command buttons in the form.
>>
>>Hopefully, it makes sense.
>>
>>Thank you,
>>Ali
>>
>>>Ali,
>>>
>>>Can you provide more details? Are controls on that form placed in rows and columns as in GetColor()?
>>>
>>>>
>>>>I would like to have a control move all over the form by arrow keys. (exactly like what we do in GetColor() form to change the current color.) How can I do that?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform