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 |
|
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:
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 #9573 is a reply to message #9564] |
Thu, 17 May 2007 18:26 |
|
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
|
|
|
Goto Forum:
Current Time: Fri Sep 20 08:25:39 CEST 2024
Total time taken to generate the page: 0.02937 seconds
|