Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Graphics
  4. Help wuth click map

Help wuth click map

Scheduled Pinned Locked Moved Graphics
graphicshelpquestion
2 Posts 2 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    matjame
    wrote on last edited by
    #1

    hello guys. Im not a graphics person but I need help with something.I need a man, preferebly South African with all the states.I want to be able to click on the individual states and get to another picture.Im designing a web page for my company and I have subsidiaries in different states.I want info of those subsidiaries when I click, which I can display on the page.How do I get a map like that.ive googled and don get anything.

    kagiso

    C 1 Reply Last reply
    0
    • M matjame

      hello guys. Im not a graphics person but I need help with something.I need a man, preferebly South African with all the states.I want to be able to click on the individual states and get to another picture.Im designing a web page for my company and I have subsidiaries in different states.I want info of those subsidiaries when I click, which I can display on the page.How do I get a map like that.ive googled and don get anything.

      kagiso

      C Offline
      C Offline
      codeII
      wrote on last edited by
      #2

      Create a second bitmap with the same dimensions which you don't display. Give each unique area a unique color. The next step is, when the user clicks your bitmap get the mouse coordinates relative to your bitmap and use these coords on your internal map. DWORD ID = GetPixel( x, y ); switch ( ID ) { case 12: //South African; }

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups