DEFINE CLASS ObnoxiousButton as CommandButton >> PROCEDURE DoubleClick >> ?? CHR(7) >> WAIT WINDOW 'Hey dummy, you double-clicked!!!' >> ENDPROC >>ENDDEFINE>>
DEFINE CLASS FlexibleButtonDef AS CommandButton
icDoubleClickPrgToRun = 'ObnoxiousDoubleClick.FXP'
PROCEDURE DoubleClick
IF FILE(thisform.icDoubleClickPrgToRun)
DO (thisform.icDoubleClickPrgToRun)
ELSE
WAIT WINDOW 'Hey dummy, I can't find my DoubleClick Code!!!!'
ENDIF
ENDPROC
ENDDEFINE
You could then create the program to run for the DubleClick as a text file, compile it, and stick the name of the program to run in the propery you create to hold the name. it's not what I'd do, since i usually know the basic behavior I want well in advance, and might just need to set a couple of properties to get my subclass to behave, but this approach does work with SP3's new ability to compile a .PRG on the fly...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