Page 1 of 2
Difficulty with png icons in WxCrafter/Codelite 9.0.3
Posted: Sun Nov 15, 2015 2:34 am
by wittend
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
Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3
Posted: Sun Nov 15, 2015 6:40 am
by eranif
do you get the images in the toolbar?
Or the problem is specific to wxMenu?
Thanks
Eran
Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3
Posted: Sun Nov 15, 2015 6:49 am
by eranif
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
Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3
Posted: Sun Nov 15, 2015 7:25 am
by wittend
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 images _do_ appear correctly in the toolbar. I meant to mention that.
The 'Kind' field in the menu item properties is set to normal. I did not want to make them check or radio.
Dave
Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3
Posted: Sun Nov 15, 2015 7:27 am
by wittend
Oh, and of course the .wxcp file!
Dave
Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3
Posted: Sun Nov 15, 2015 10:47 am
by eranif
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
Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3
Posted: Sun Nov 15, 2015 7:08 pm
by wittend
Wow! Thanks! I'll test it today, and post the outcome.
Dave
Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3
Posted: Sun Nov 15, 2015 7:16 pm
by wittend
Eranif,
Seems fixed! Thanks for the prompt attention!
Great stuff, as always!
Dave
Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3
Posted: Sun Nov 15, 2015 7:50 pm
by wittend
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
Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3
Posted: Sun Nov 15, 2015 7:55 pm
by wittend
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