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 » Toolbar images vanishing [SOLVED]
Re: Toolbar images vanishing [message #25900 is a reply to message #25899] Thu, 18 March 2010 16:51 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Even simpler testcase (same image file as above...) :

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

#define IMAGECLASS BigIconsImg
#define IMAGEFILE <BigIcons/BigIcons.iml>
#include <Draw/iml.h>

INITBLOCK
{
	Image img = BigIconsImg::Flag();
};

class BigIcons : public TopWindow
{
	public:
		typedef BigIcons CLASSNAME;
		ToolBar toolBar;
		void nullFunc(void) {}
		BigIcons()
		{
			toolBar.Add("one", BigIconsImg::Flag(), THISBACK(nullFunc));
			AddFrame(toolBar);
		}
};

GUI_APP_MAIN
{
	BigIcons().Run();
}


It seems that accessing Iml from inside INITBLOCK can bring troubles....

Max
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Draw::WrawText to paint ASCII sequence
Next Topic: Display::PaintBackground not called
Goto Forum:
  


Current Time: Fri May 10 03:00:37 CEST 2024

Total time taken to generate the page: 0.09345 seconds