Results 1 to 4 of 4

Thread: How to forward mouse clicks from ImgAlbum to hosting form?

  1. #1
    FLAC
    Join Date
    Sep 2004
    Posts
    1,577

    How to forward mouse clicks from ImgAlbum to hosting form?

    I want to make the album art a button by defining a button for the skin that hosts the album art matching it's size. That means I need to forward clicks to the ImgAlbum object to the skin. With the recent UI perf improvement changes it became a PictureBox.

    How would I go about doing that for a PictureBox?
    Progress: 80% - Permanent install left.
    Motion LS800 Tablet PC and dock.
    Vista, Bu-535 GPS, RoadRunner, MPT2006.

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    Just need forward the mouse events from imgalbum to the form (as the main functions are still there).. basically, the same code that is forwarding mouse events from pic() to the form should work.. just need to change the names from pic_xxxx(index,...) to imgalbum_xxxx(index,...)
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  3. #3
    FLAC
    Join Date
    Sep 2004
    Posts
    1,577
    I had to put the ImgAlbum object back into the form as a native VB object (instead of just being declared as a private member). That seems to be reversing your change in the last code drop. Is there a down side to doing that?

    Once I had done that I did get the events and could forward them on to the form again.
    Progress: 80% - Permanent install left.
    Motion LS800 Tablet PC and dock.
    Vista, Bu-535 GPS, RoadRunner, MPT2006.

  4. #4
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    effectively no... But I'll be adding conditional existence of some objects to improve memory usage (at some point) .. that's the main reason why I am trying to reorganize the main skin form...
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

Similar Threads

  1. how do I automate mouse clicks? macro?
    By AlphaFox in forum Software & Software Development
    Replies: 14
    Last Post: 11-21-2010, 11:18 AM
  2. PS2 3 Button(Rotary Wheel) Mouse Properties?
    By nFiniteTuning in forum Input Devices
    Replies: 4
    Last Post: 03-12-2005, 09:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •