Results 1 to 7 of 7

Thread: Adding new events 2 a control!!! ASAP!!!!!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Posts
    70

    Exclamation

    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"

  2. #2
    Fanatic Member ExcalibursZone's Avatar
    Join Date
    Feb 2000
    Location
    Western NY State
    Posts
    908
    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.
    -Excalibur

  3. #3
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    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.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Posts
    70

    If you find the thread by chance lemme know..

    Thanx
    Kiziltan Yuceil
    Freelance Web/VB/VBA Programmer
    "It's not what you know it's to whom you consult and with whom you collaborate"

  5. #5
    Fanatic Member ExcalibursZone's Avatar
    Join Date
    Feb 2000
    Location
    Western NY State
    Posts
    908
    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.
    -Excalibur

  6. #6
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    ... 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.

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Posts
    70

    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
  •  



Click Here to Expand Forum to Full Width