Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add events?!
Message
From
07/01/2000 15:13:39
 
 
To
06/01/2000 23:14:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00313888
Message ID:
00314687
Views:
44
>>i know this method, but what i want to do is use coding method to declare a object event~!
>
>You can't do that. This is VFP not C++ or Java! You can only repond to events that are raised by the VFP environment.
>
>You can do some psuedo event creation with access and assign events.
>
>But, good thing is, you don't need to declare the Click event for a CommandButton, but, if you want to respond to a DoubleCLick... you would have to kludge it... perhaps on the mouseup set a property that there was a single click... check it... if mouse up fires... and single click is true... perhaps check to see if the difference is within the _DoublClick time frame, if it is call a double click method that you created.
>

Yep, or use an ActiveX control rather than the native VFP control that has a doubleclick event, or use a native VFP control like an OptionButton that supports a doubleclick event.

>Bottom line though... if the event is not listed on the property sheet, you can't respond to it.

Yep, you can add methods bt not events.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform