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. C / C++ / MFC
  4. custom button or graphic with multi select points

custom button or graphic with multi select points

Scheduled Pinned Locked Moved C / C++ / MFC
tools
3 Posts 3 Posters 1 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.
  • K Offline
    K Offline
    Kyle P
    wrote on last edited by
    #1

    We need a custom button or custom graphic to be able to have multiple select points. We have looked at Button Objx and other tools but no luck yet. Eg. have a vehicle button or graphic and based on selection, eg. doors, hood, wheels, etc. go to different events or mark selections. We would need an outline front/back of a human body as well. Also, would need graphic/button to be able to be resized based on resolution. Any ideas of what we can do. thank you

    CLAY

    D R 2 Replies Last reply
    0
    • K Kyle P

      We need a custom button or custom graphic to be able to have multiple select points. We have looked at Button Objx and other tools but no luck yet. Eg. have a vehicle button or graphic and based on selection, eg. doors, hood, wheels, etc. go to different events or mark selections. We would need an outline front/back of a human body as well. Also, would need graphic/button to be able to be resized based on resolution. Any ideas of what we can do. thank you

      CLAY

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Kyle P wrote:

      We need a custom button or custom graphic to be able to have multiple select points...Any ideas of what we can do.

      See here.

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "Man who follows car will be exhausted." - Confucius

      1 Reply Last reply
      0
      • K Kyle P

        We need a custom button or custom graphic to be able to have multiple select points. We have looked at Button Objx and other tools but no luck yet. Eg. have a vehicle button or graphic and based on selection, eg. doors, hood, wheels, etc. go to different events or mark selections. We would need an outline front/back of a human body as well. Also, would need graphic/button to be able to be resized based on resolution. Any ideas of what we can do. thank you

        CLAY

        R Offline
        R Offline
        Rozis
        wrote on last edited by
        #3

        What i would do: - Create a bitmap of a car. - define rectangles where the user may click on. Save those rectangles (origins and sizes) in an array or file - run the program and measure its screen-size - calculate the difference in size of the screen and the bitmap in a ratio - read in the bitmap and put it on screen. Stretch it when needed (use StretchBlt() ?) - read in the rectangles - When stretched multiply all coords of the rectangles with the ratio. - program the actions - Monitor the mouse up messages: when the mouse is in one of the rectangles, invoke the corresponding action. ready... If you still have time over: - take the bitmap and cut out every rectangle, colorize it a bit and save it as a new bitmap. Now every rectangle has a (sub)bitmap that can be displayed while the mouse hoovers over the rectangle (you'll need to monitor mouse moves also) .. Rozis

        modified on Wednesday, April 28, 2010 8:38 PM

        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