Results 1 to 5 of 5

Thread: Images require up to 3 clicks before event is thrown!

  1. #1
    Guest

    Unhappy

    I have an Image in my ActiveX control and I need to click it three time before it responds to my clicks. anyone know how to get it to respond the first time?

    this is in relation to my earlier post about resizing my activeX control.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    That's not normal behaivour of image, it can be due to many things, what do you have in the click, mousedown, mouseup, dblclick events?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Guest
    This happens to me too. Don't know why though. Try putting it in MouseDown event and it may clear things up.

  4. #4
    Guest
    i am using the mousedown event!

    now it's not even doing what i want in it. basically i have an imagelist and when i click on an image it's supposed to swap images so it looks like the button was "pressed" but it won't swap the images... but it will do the functions called when the image is mousedown'ed.

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Try put a breakpoint in the event and look if it's fired, then use F8 to execute step by step and look where it fails, also you could post up the code in the event if you can't find out
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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