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. To make a different "button control"

To make a different "button control"

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphicstutoriallearning
4 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.
  • I Offline
    I Offline
    illidan99
    wrote on last edited by
    #1

    Hi, I'm Javier. I want add to my application a control button. But I don't want the typical rectangular button. I want add a picture resource, and change the button's appearance, for example that it looks an arrow(a bitmap picture), but the control is the same functionally, the only change is the appearance. ¿How can I do this? Tahnk you:-D:-D:-D.

    K M 2 Replies Last reply
    0
    • I illidan99

      Hi, I'm Javier. I want add to my application a control button. But I don't want the typical rectangular button. I want add a picture resource, and change the button's appearance, for example that it looks an arrow(a bitmap picture), but the control is the same functionally, the only change is the appearance. ¿How can I do this? Tahnk you:-D:-D:-D.

      K Offline
      K Offline
      KellyR
      wrote on last edited by
      #2

      Hi Javier. What I did when I encountered this problem was to write my own button class - assign each button a bitmap that you display, assign the button coordinates and width/height or whatnot, and then every time there's a mouse click, just look through your buttons to see if the click was inside the coordinates and parameters. I use this for all of my games nowadays and it works great. 100% customization. But of course then you have to write your own class for it. I don't know of a way to do what you're asking using the default windows API. Kelly Ryan

      1 Reply Last reply
      0
      • I illidan99

        Hi, I'm Javier. I want add to my application a control button. But I don't want the typical rectangular button. I want add a picture resource, and change the button's appearance, for example that it looks an arrow(a bitmap picture), but the control is the same functionally, the only change is the appearance. ¿How can I do this? Tahnk you:-D:-D:-D.

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #3

        have you looked here for some example of non restangular buttons ?


        Maximilien Lincourt Your Head A Splode - Strong Bad

        I 1 Reply Last reply
        0
        • M Maximilien

          have you looked here for some example of non restangular buttons ?


          Maximilien Lincourt Your Head A Splode - Strong Bad

          I Offline
          I Offline
          illidan99
          wrote on last edited by
          #4

          thanks for answering. I have found interesting classes in this web, made by Davide Pizzolato . They're great. Bye.

          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