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