How can I add an onclick event to a control that does not have it?
Printable View
How can I add an onclick event to a control that does not have it?
The best way would be to create a custom control and add the click event to it. there is an excellent tutorial on how to make your own activex control here on vb-world, give it a shot.
What Control are you refering to? Doesn't it have any MouseUp and MouseDown Events?
If there are none of them, you should Subclass it, and react when you receive a click message, but this isn't easy so first check out the Mouse* events.
Thanx
not a thread, it's an article written by karl moore. do a search in the active x section, or do a search in articles.
... but what control do you want to add the event to?
jop->
The control is a 3rd party anigif player control; gif89a. It does not support mouse events at all.
This subclassing term is coming after me, I checked some codes but it raher sounded alienish to me..
I need to have dummy-level-step-by-step kind instructions, I guess.. (:(
ExcalibursZone->
Thanx, I'll check that.
I know try to create a user control form then embed the anigif control into it, use its properties and methods through it and enhance it by onclick/ondblclick events. However, I am totally new to user control creation stuff, as well.
Awaiting helping hand in tears!!