Difficulty with png icons in WxCrafter/Codelite 9.0.3
-
- CodeLite Enthusiast
- Posts: 44
- Joined: Thu Oct 09, 2008 9:11 pm
- Contact:
Difficulty with png icons in WxCrafter/Codelite 9.0.3
I am using WxCrafter/Codelite to make a simple interface under Mint/Linux 14.04. Nothing real fancy, but I wanted to use some 16 px PNG Icons from the IconMoon collection. I included one for the main window icon and others as menu item icons using WxCrafter 2.3.
The icons appear as expected in the display of the interface in WxCrafter. But after saving, code creation, and a C++ rebuild, these icons do not show up when the executable is run. Menu item icons for items given standard WX ID's (i.e. wxID_OPEN for File->Open) show the expected default Wx icons next to their labels.
I have tried the 'use relative paths' checkbox in the 'Select Bitmap' dialog set both ways.
I am attaching the WxCrafter output.
Thanks,
Dave
The icons appear as expected in the display of the interface in WxCrafter. But after saving, code creation, and a C++ rebuild, these icons do not show up when the executable is run. Menu item icons for items given standard WX ID's (i.e. wxID_OPEN for File->Open) show the expected default Wx icons next to their labels.
I have tried the 'use relative paths' checkbox in the 'Select Bitmap' dialog set both ways.
I am attaching the WxCrafter output.
Thanks,
Dave
You do not have the required permissions to view the files attached to this post.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3
do you get the images in the toolbar?
Or the problem is specific to wxMenu?
Thanks
Eran
Or the problem is specific to wxMenu?
Thanks
Eran
Make sure you have read the HOW TO POST thread
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3
Can you post here the wxcp file as well?
Also, according to the code, wxCrafter will prevent you from settings images to check/radio items and in case if the item type is != wxITEM_NORMAL
Eran
Also, according to the code, wxCrafter will prevent you from settings images to check/radio items and in case if the item type is != wxITEM_NORMAL
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 44
- Joined: Thu Oct 09, 2008 9:11 pm
- Contact:
Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3
The images _do_ appear correctly in the toolbar. I meant to mention that.eranif wrote: Can you post here the wxcp file as well?
Also, according to the code, wxCrafter will prevent you from settings images to check/radio items and in case if the item type is != wxITEM_NORMAL
Eran
do you get the images in the toolbar?
Or the problem is specific to wxMenu?
The 'Kind' field in the menu item properties is set to normal. I did not want to make them check or radio.
Dave
-
- CodeLite Enthusiast
- Posts: 44
- Joined: Thu Oct 09, 2008 9:11 pm
- Contact:
Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3
Oh, and of course the .wxcp file!
Dave
Dave
You do not have the required permissions to view the files attached to this post.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3
Should be fixed now. I have uploaded a new CodeLite build (not released yet) so you can test the fix:
http://codelite.org/downloads/codelite/ ... x86_64.deb
Thanks
Eran
http://codelite.org/downloads/codelite/ ... x86_64.deb
Thanks
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 44
- Joined: Thu Oct 09, 2008 9:11 pm
- Contact:
Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3
Wow! Thanks! I'll test it today, and post the outcome.
Dave
Dave
-
- CodeLite Enthusiast
- Posts: 44
- Joined: Thu Oct 09, 2008 9:11 pm
- Contact:
Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3
Eranif,
Seems fixed! Thanks for the prompt attention!
Great stuff, as always!
Dave
Seems fixed! Thanks for the prompt attention!
Great stuff, as always!
Dave
-
- CodeLite Enthusiast
- Posts: 44
- Joined: Thu Oct 09, 2008 9:11 pm
- Contact:
Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3
Oops,
One more thing, I think...
I have specified one of the same set of PNG files for use as the 16x16 px icon for the MainFrameBaseClass. It appears as the app icon in the caption bar in the WxCrafter view, but doesn't make it into the executable. Similar problem?
Dave
One more thing, I think...
I have specified one of the same set of PNG files for use as the 16x16 px icon for the MainFrameBaseClass. It appears as the app icon in the caption bar in the WxCrafter view, but doesn't make it into the executable. Similar problem?
Dave
-
- CodeLite Enthusiast
- Posts: 44
- Joined: Thu Oct 09, 2008 9:11 pm
- Contact:
Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3
On second thought, maybe that is a window styling thing in Mint. Other executables don't show that either. But the icon does show up in the Mint desktop 'panel' . False alarm, I guess.
Sorry,
Dave
Sorry,
Dave