Re: [gtkmm] Creating and setting pixmaps with strings
- From: Christopher David <DavidC mail lafayette edu>
- To: Daniel Bausch <DanielBausch gmx de>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] Creating and setting pixmaps with strings
- Date: Mon, 14 Apr 2003 16:05:23 -0400
Daniel Bausch wrote:
Hello again:
Am Saturday, 12. April 2003 20:48 schrieb Christopher David:
pixmapGnim01->set("../../GimsImg/gnim01lrg.xpm");
or if the file is in the current directory,
pixmapGnim01->set("./gnim01lrg.xpm");
These I would expect to work. Maybe your working directory is not the one you
think. Try an absolute path name.
You're absolutely right, the working directory was not what I thought it
was. Once you mentioned that I checked it out and was able to put in
the proper path fro the pixmaps and it worked perfectly. Thank you so
much for your help.
Many Thanks
Chris David
Am Saturday, 12. April 2003 18:41 schrieb Christopher David:
pixmapGnim01->set("gnim01lrg_xpm");
or
string pixName = "gnim01lrg_xpm";
pixmapGnim01->set(pixName);
or
These will not work, because your file is probably named "gnim01lrg.xpm" and
not "gnim01lrg_xpm" like the #included variable name.
If you really specified it like that, then your error is a simple typo ;-)
Daniel Bausch
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]