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. Suggestions about bitmap buttons required

Suggestions about bitmap buttons required

Scheduled Pinned Locked Moved C / C++ / MFC
cssgraphicshelpquestion
2 Posts 2 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.
  • N Offline
    N Offline
    Nick Armstrong
    wrote on last edited by
    #1

    I am building an application which has similar (limited :) ) functionality to an art package. The main screen is a grid with different bitmaps that are loaded dynamically to form maps. As well as this main screen there is a floating tool window (which at the moment is empty), that I want to house the bitmap palette, a bit like a colour palette in a normal art package. The map's use a lot of different bitmaps and so I have included a menu on the top of the tool window dialog so that different palettes will be able to be loaded. Another thing I wish to implement is a scroll bar in this tool dialog, again because there are going to be a lot of different bitmaps available. What do people suggest I do to handle the selecting of different bitmaps on the tool window. At the moment I am trying to implement them using buttons with bitmaps instead of text, problem with this is that I cannot find any examples of dynamically loading these bitmaps from files to go on the button, just resources. Is there a better way of doing things with this tool window than this? Any suggestions will be greatly appreciated Nick :)

    P 1 Reply Last reply
    0
    • N Nick Armstrong

      I am building an application which has similar (limited :) ) functionality to an art package. The main screen is a grid with different bitmaps that are loaded dynamically to form maps. As well as this main screen there is a floating tool window (which at the moment is empty), that I want to house the bitmap palette, a bit like a colour palette in a normal art package. The map's use a lot of different bitmaps and so I have included a menu on the top of the tool window dialog so that different palettes will be able to be loaded. Another thing I wish to implement is a scroll bar in this tool dialog, again because there are going to be a lot of different bitmaps available. What do people suggest I do to handle the selecting of different bitmaps on the tool window. At the moment I am trying to implement them using buttons with bitmaps instead of text, problem with this is that I cannot find any examples of dynamically loading these bitmaps from files to go on the button, just resources. Is there a better way of doing things with this tool window than this? Any suggestions will be greatly appreciated Nick :)

      P Offline
      P Offline
      Paolo Messina
      wrote on last edited by
      #2

      If you have BMP files, you may use LoadImage() to load the bitmaps from file. Paolo ------ "airplane is cool, but space shuttle is even better" (J. Kaczorowski)

      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