Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Double click on an image control
Message
 
To
12/01/2007 01:36:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6
Miscellaneous
Thread ID:
01184899
Message ID:
01185218
Views:
13
>I'd like to add a double click event to my image control. This control has been created using the thisform.addobject.
>
>How can I do this?
* utDemo (terry)
PUBLIC theform
theform=CREATEOBJECT([aForm])
theform.show

DEFINE CLASS aform as form
caption=[Double Click Image Demo]
autocenter=.t.
visible=.t.
PROCEDURE release
this.queryunload
ENDPROC
PROCEDURE queryunload
CLEAR EVENTS
ENDPROC 
ADD OBJECT theImage as anImage
ENDDEFINE 

DEFINE CLASS anImage as Image
PROCEDURE init
this.Width=thisform.width/2
this.Height=thisform.height/3
this.Top=(thisform.height-this.height)/2
this.left=(thisform.width-this.Width)/2
visible=.t.
ENDPROC
PROCEDURE dblclick
MESSAGEBOX([Image was Double CLicked],0,[Image DBLCLICK])
ENDPROC
ENDDEFINE
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform