Thread: Clicking in regions.

  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,057
    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,057
    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, 08:25 PM
  4. Dividing window into regions
    By Tesita in forum Windows Programming
    Replies: 3
    Last Post: 11-05-2003, 02:30 PM
  5. Update, Clipping regions
    By bennyandthejets in forum Windows Programming
    Replies: 1
    Last Post: 06-29-2003, 06:38 AM