Results 1 to 7 of 7

Thread: Captures Mouse Click on the Taskbar Icon.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2017
    Posts
    26

    Captures Mouse Click on the Taskbar Icon.

    Hi guys, it seems like a stupid question but I'm having difficulty capturing the mouse click event on the taskbar icon of one of my form. is anyone aware...or rather is there a way to capture this event? Thanks.

    Name:  pci2.jpg
Views: 465
Size:  22.7 KB

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Feb 2017
    Posts
    26

    Re: Captures Mouse Click on the Taskbar Icon.

    OK I Fix with the messages of "WM_SYSCOMMAND" with the precision in request to the command of "SC_MINIMIZE" & "SC_RESTORE".

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,345

    Re: Captures Mouse Click on the Taskbar Icon.

    You just want your app to react to WindowState changing? You could use your Forms Resize event, and check WindowState…

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Feb 2017
    Posts
    26

    Re: Captures Mouse Click on the Taskbar Icon.

    Quote Originally Posted by .paul. View Post
    You just want your app to react to WindowState changing? You could use your Forms Resize event, and check WindowState…
    No that wasn't right, the event must occur before the form state, at mouse.click.down and not at WindowState. the scheduled event creates a fade of the form "Me.Opacity = 0 - 100" when the form is iconized and restored.

  5. #5
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,345

    Re: Captures Mouse Click on the Taskbar Icon.

    Quote Originally Posted by malkovich View Post
    No that wasn't right, the event must occur before the form state, at mouse.click.down and not at WindowState. the scheduled event creates a fade of the form when the form is ionized and restored.
    Ok. If that works for you, that’s good

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Feb 2017
    Posts
    26

    Re: Captures Mouse Click on the Taskbar Icon.

    Quote Originally Posted by .paul. View Post
    Ok. If that works for you, that’s good
    Thanks for your intervention, you are a great programmer, my respect you.

  7. #7
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,345

    Re: Captures Mouse Click on the Taskbar Icon.

    Quote Originally Posted by malkovich View Post
    Thanks for your intervention, you are a great programmer, my respect you.
    All of us here are still learning. There’s always more to learn…

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