Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controls fire twice
Message
From
07/07/2009 07:57:25
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01410388
Message ID:
01410506
Views:
39
Good Morning Naomi,

hm. I missed the point that he means FORMS KEYPRESS. Then yess it would be expected behaviour. Especially if he assigns a access key something like
.caption = '\<Add New'
to the new button. In this case the standard behaviour of THISFORM Keypress (KEYPREVIEW=.t.) would be to call buttons click. (But then he wouldn't need the keypress anyway)

Agnes
>Probably to put the code in one place (KeyPress). I think using NODEFAULT in the Click for each button may work the same - I haven't tried, as I remember.
>
>>Naomi,
>>
>>is there a reason against simple
>>
>>
>>PROCEDURE CLICK
>>NODEFAULT
>>DO CASE
>>CASE ...
>>
>>
>>?
>>
>>I have a button with a similar problem - it calls a method btw.
>>
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform