Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A way to know if mouse or keyb was used in grid
Message
From
30/08/2003 18:17:03
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00822423
Message ID:
00824862
Views:
29
Hi Sergey,

I am trying to mimic the behavior of the Index tab page of MSDN VFP help. =)

Since the KeyPress event of the textbox can already trap for the UP or DOWN keys, I also need to trap if the mouse or mouse click was used in going out of (or losing focus of) the textbox (and used selecting a grid row). I need this in order to update the textbox contents via updating the UpdateTextBox property to .T.

Thanks again

Dennis


>Hi Dennis,
>
>I'm sorry but I don't understand what the problem is because I'm not sure what you're trying to do. Anyway, maybe MDOWN() function would help?
>
>>Hi Sergey,
>>
>>My gratitudes for your attention to this thread. Yes, I do put code in the AfterRowColChange event to update the textbox contents but ONLY when a MOUSE click, the DOWN or the UP key was used to position to a grid row.
>>
>>I put have a UpdateTextBox property which I set to .T. if in the textbox keypress event the UP or DOWN keys were pressed, but am at a loss on how to determine if a MOUSE click was used. The UpdateTextBox property is being used by the AfterRowColChange to determine if it will update the textbox contents or not.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform