Results 1 to 3 of 3

Thread: Image and Events

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked
    0 times in 0 posts

    Image and Events

    Hallo,
    I’m new to programming, to get me moving I’m trying to build a graphic games program ‘Darts’. The program is used for the scores, these can be entered in text boxes (this is easy) or with the mouse (not easy). The problem I have is: I have an image of a darts board, when I place the mouse over a part of the image say over the 20 or double 20, I want to be able to catch this event so it can be subtracted from the over all score. Can anybody tell me how this is done or point me in the direction what I need to read on this subject?
    I’m using MS Visual Studio 2008 and C#.

    Many thanks

    Wayne

  2. #2
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,168
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: Image and Events

    are you using WPF, DirectX or regular 'WinForms'?

    This is commonly refered to as Hit Detection, the process of discovering which object has been 'hit'.

    If you want to capture mouse inputs and translate them to numbers etc, have a look at using the Tablet PC API, as this will have it all done for you. But i can't help but feal i've miss understood something and that you don't want to let people enter a number via the mouse as a gesture, but you want them to click on a section of the dartboard?
    throw new ArgumentException (String, String, Exception)

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: Image and Events

    Thanks, I'll see if I can make some sense of it all.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Image Broken Javascript
    By Ap0llo in forum Software
    Replies: 6
    Last Post: 28-11-2007, 09:32 PM

Posting Permissions

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