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 » TopWindow&PopUp, TrayIcon » How to add Topwindow icon?
How to add Topwindow icon? [message #9564] Thu, 17 May 2007 15:10 Go to next message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
I wanted to add a Icon to my Topwindow. I added a .iml to my package and this code to my main.cpp:

#define IMAGECLASS appImg
#define IMAGEFILE "app.iml"


and this to my header-file:

#include <Draw/iml.h>


but got these error:

In file included from C:/Programme/UPP/uppsrc/Draw/iml.h:5,
                 from J:\Entwicklung\UPP\prohibisZA\/prohibisZA.h:13,
                 from J:\Entwicklung\UPP\prohibisZA\mainmenu.cpp:7,
                 from C:/Programme/UPP/out/prohibisZA/MINGW.Blitz.Gui.Main\$blitz.cpp:3:
C:/Programme/UPP/uppsrc/Draw/iml_header.h:18:10: #include expects "FILENAME" or <FILENAME>
C:/Programme/UPP/uppsrc/Draw/iml_header.h:45:10: #include expects "FILENAME" or <FILENAME>
In file included from C:/Programme/UPP/uppsrc/Draw/iml.h:9,
                 from J:\Entwicklung\UPP\prohibisZA\/prohibisZA.h:13,
                 from J:\Entwicklung\UPP\prohibisZA\mainmenu.cpp:7,
                 from C:/Programme/UPP/out/prohibisZA/MINGW.Blitz.Gui.Main\$blitz.cpp:3:
C:/Programme/UPP/uppsrc/Draw/iml_source.h:18:10: #include expects "FILENAME" or <FILENAME>
C:/Programme/UPP/uppsrc/Draw/iml_source.h:36:12: #include expects "FILENAME" or <FILENAME>
C:/Programme/UPP/uppsrc/Draw/iml_source.h:47:12: #include expects "FILENAME" or <FILENAME>
C:/Programme/UPP/uppsrc/Draw/iml_source.h:69:12: #include expects "FILENAME" or <FILENAME>
prohibisZA: 11 file(s) built in (0:05.89), 535 msecs / file, duration = 5985 msecs, parallelization 0%

There were errors. (0:07.64)


Any idea what the problem is?

Michael
Re: How to add Topwindow icon? [message #9565 is a reply to message #9564] Thu, 17 May 2007 15:15 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
#define IMAGEFILE <MyPackage/image.iml>
#define IMAGECLASS MyImg
#include <Draw/iml.h>

You are missing the "MyPackage" part...
Re: How to add Topwindow icon? [message #9573 is a reply to message #9564] Thu, 17 May 2007 18:26 Go to previous message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
Thanks,

besides that, my mistake was the way i used include and define. Now i added this to my main.cpp and it works:

#include "main.h"

#define IMAGEFILE <packageName/main.iml>
#define IMAGECLASS MyImg

#include <Draw/iml.h>


Thanks, again.

Michael

[Updated on: Thu, 17 May 2007 18:39]

Report message to a moderator

Previous Topic: runtime tray icon? Draw a number?
Next Topic: How to delete all widgets on a TopWindow?
Goto Forum:
  


Current Time: Fri Mar 29 12:42:37 CET 2024

Total time taken to generate the page: 0.01389 seconds