|
-
Dec 5th, 2000, 08:29 AM
#1
Thread Starter
Lively Member
How can I add an onclick event to a control that does not have it?
Kiziltan Yuceil
Freelance Web/VB/VBA Programmer
"It's not what you know it's to whom you consult and with whom you collaborate"
-
Dec 5th, 2000, 08:46 AM
#2
Fanatic Member
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.
-
Dec 5th, 2000, 08:51 AM
#3
Frenzied Member
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.
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Dec 5th, 2000, 08:53 AM
#4
Thread Starter
Lively Member
If you find the thread by chance lemme know..
Kiziltan Yuceil
Freelance Web/VB/VBA Programmer
"It's not what you know it's to whom you consult and with whom you collaborate"
-
Dec 5th, 2000, 09:02 AM
#5
Fanatic Member
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.
-
Dec 5th, 2000, 09:11 AM
#6
Frenzied Member
... but what control do you want to add the event to?
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Dec 5th, 2000, 09:31 AM
#7
Thread Starter
Lively Member
Answers:
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!!
Kiziltan Yuceil
Freelance Web/VB/VBA Programmer
"It's not what you know it's to whom you consult and with whom you collaborate"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|