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 #1803 is a reply to message #127] Mon, 20 March 2006 07:45 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
Why this doesn't work?
#include <CtrlLib/CtrlLib.h>

GUI_APP_MAIN
{     TopWindow w;
      Label l;
      Image img;

      w.Add(l);
	l.SetPos(l.PosLeft(0, 100), l.PosTop(0, 30));	

	img = BmpEncoder::NewBmp()->LoadImage("testImg.bmp");
	//img.Exclamation();    //at least this should work?
	l.SetImage(img);

	w.Run();
}



And how to check if image was loaded?

[Updated on: Mon, 20 March 2006 07:45]

Report message to a moderator

 
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 17:06:06 CEST 2024

Total time taken to generate the page: 0.02316 seconds