Clicking in regions.

This is a discussion on Clicking in regions. within the Windows Programming forums, part of the Platform Specific Boards category; Hello. I'm trying to create a 'musical keyboard' whereby you click on one of the 88 keys and it plays ...

  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    4

    Clicking in regions.

    Hello. I'm trying to create a 'musical keyboard' whereby you click on one of the 88 keys and it plays the note. However I am not sure on the best way to go about doing this... Is it best to have lots of little invisible buttons with the static image of the keyboard behind it for each key, or is there an easier way for dealing with clicking areas in the window where I wouldn't create a button?

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,045
    Is there such a thing as an image map in C# as there is in HTML? Sticking "c# image map" into google seems to indicate that there is . . .
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Registered User
    Join Date
    Sep 2007
    Posts
    4
    i wish to use plain C.

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,045
    D'oh, I thought this was the C# forum. Sorry.

    Well, still, see if you can find an image map. It sounds exactly like what you're looking for.

    [offtopic] 4100th post! [/offtopic]
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. InvalidateRgn for clipped regions
    By csonx_p in forum Windows Programming
    Replies: 8
    Last Post: 06-11-2008, 01:36 AM
  2. Replies: 5
    Last Post: 10-21-2005, 02:11 PM
  3. Automatic clicking
    By gustavosserra in forum C++ Programming
    Replies: 3
    Last Post: 12-07-2004, 07:25 PM
  4. Dividing window into regions
    By Tesita in forum Windows Programming
    Replies: 3
    Last Post: 11-05-2003, 01:30 PM
  5. Update, Clipping regions
    By bennyandthejets in forum Windows Programming
    Replies: 1
    Last Post: 06-29-2003, 06:38 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21