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. Visual Basic
  4. Creating "Hot Spots" on an image.. ?

Creating "Hot Spots" on an image.. ?

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestion
5 Posts 3 Posters 0 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.
  • C Offline
    C Offline
    coopsqc
    wrote on last edited by
    #1

    If you can help please do, I'm about to have a fit over this small but annoying issue. I have an image of a solar system, with 15 images that I need to "create hot spots" for. So that when the user clicks them they "do an activity". I can't find any reference anywhere as to how to create "hot spots". I've been reading and serching but to no avial. I'm coming along nicely with my project so far, but have stumbled over this part.. Can you help ? Many thanks. :)

    D N 2 Replies Last reply
    0
    • C coopsqc

      If you can help please do, I'm about to have a fit over this small but annoying issue. I have an image of a solar system, with 15 images that I need to "create hot spots" for. So that when the user clicks them they "do an activity". I can't find any reference anywhere as to how to create "hot spots". I've been reading and serching but to no avial. I'm coming along nicely with my project so far, but have stumbled over this part.. Can you help ? Many thanks. :)

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You don't make "hot spots" in the images. You track the mouse inside your control and then, when the user clicks the mouse, you compare the mouse coordinates to your objects coordinates. See this[^] article for an example. RageInTheMachine9532

      C 1 Reply Last reply
      0
      • C coopsqc

        If you can help please do, I'm about to have a fit over this small but annoying issue. I have an image of a solar system, with 15 images that I need to "create hot spots" for. So that when the user clicks them they "do an activity". I can't find any reference anywhere as to how to create "hot spots". I've been reading and serching but to no avial. I'm coming along nicely with my project so far, but have stumbled over this part.. Can you help ? Many thanks. :)

        N Offline
        N Offline
        Nadroj
        wrote on last edited by
        #3

        the quickest way to do this i think would be to place objects ontop of your image. have your main big image in the background, and place (ie.)labels ontop of the main image. make the label transparent so the user doesnt know its there. this label can act as your "hot spot". and upon clicking the label it will act just like a normal hotspot, assuming the coding is correct. if a label doesnt work, use a imagebox or something, with no border or image source. ------------------------ Jordan. III

        C 1 Reply Last reply
        0
        • N Nadroj

          the quickest way to do this i think would be to place objects ontop of your image. have your main big image in the background, and place (ie.)labels ontop of the main image. make the label transparent so the user doesnt know its there. this label can act as your "hot spot". and upon clicking the label it will act just like a normal hotspot, assuming the coding is correct. if a label doesnt work, use a imagebox or something, with no border or image source. ------------------------ Jordan. III

          C Offline
          C Offline
          coopsqc
          wrote on last edited by
          #4

          Thanks Jordan, I was working on this method as a last way out as it makes the screen somewhat slow to redraw, causing a flicker as the screen redraws the invisible lables on top of the image. CoopsQC

          1 Reply Last reply
          0
          • D Dave Kreskowiak

            You don't make "hot spots" in the images. You track the mouse inside your control and then, when the user clicks the mouse, you compare the mouse coordinates to your objects coordinates. See this[^] article for an example. RageInTheMachine9532

            C Offline
            C Offline
            coopsqc
            wrote on last edited by
            #5

            Thankyou for this... I will read and try this, sounds like the correct way to go. CoopsQC

            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