Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Showing bitmaps or Icons
Re: Showing bitmaps or Icons [message #123 is a reply to message #117] Sat, 26 November 2005 10:33 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Quote:


Where would I look for info on how to load and show a .bmp bitmap file or an icon (given an icon handle HICON on Win32) and then get mouse events (mouse move, mouse click) for this image?


Load it in to the Image, then create your own Ctrl, paint it in the Paint an react to the MouseMove/LeftDown etc...

To load it into the Image, use BmpEncoder. Note: this part a little bit complex, as Tom designed the interface (sorry for this little retaliation Tom :):

Image img = BmpEncode::NewBmp()->LoadImage(....

Quote:


suppose I want a customised checkbox - I create two bitmaps (checked and unchecked) that I want to switch when the image is clicked.



In this case using .bmp is quite ineffective, for U++. Just design your images in the ImageDes (in .iml file) and then use them (in U++, Image is simple value object - use it as it was String.... .iml will provide you a set of "function-constants" that will return your images designed in .iml).

See reference/iml

Quote:

I recall mention of a grid component created by Daniel. Is this part of UPP? If not, it's ok. Just wondering.


Not yet. I am lagging Smile (I have to add his DatePicker first Smile
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Image with Layout (iml) painted red, why?
Next Topic: When I added "Draw" package to my project (605dev1), I get "plugin\z" added...
Goto Forum:
  


Current Time: Fri May 17 21:37:13 CEST 2024

Total time taken to generate the page: 0.02485 seconds