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 |
|
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
|
|
|
Goto Forum:
Current Time: Fri May 17 17:06:06 CEST 2024
Total time taken to generate the page: 0.02316 seconds
|