Difficulty with png icons in WxCrafter/Codelite 9.0.3

Post here wxCrafter related issues / features / bugs
wittend
CodeLite Enthusiast
Posts: 44
Joined: Thu Oct 09, 2008 9:11 pm
Contact:

Difficulty with png icons in WxCrafter/Codelite 9.0.3

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6367
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

Post by eranif »

do you get the images in the toolbar?
Or the problem is specific to wxMenu?

Thanks
Eran
Make sure you have read the HOW TO POST thread
User avatar
eranif
CodeLite Plugin
Posts: 6367
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

Post 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
Make sure you have read the HOW TO POST thread
wittend
CodeLite Enthusiast
Posts: 44
Joined: Thu Oct 09, 2008 9:11 pm
Contact:

Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3

Post 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
wittend
CodeLite Enthusiast
Posts: 44
Joined: Thu Oct 09, 2008 9:11 pm
Contact:

Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3

Post by wittend »

Oh, and of course the .wxcp file!

Dave
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6367
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

Post 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
Make sure you have read the HOW TO POST thread
wittend
CodeLite Enthusiast
Posts: 44
Joined: Thu Oct 09, 2008 9:11 pm
Contact:

Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3

Post by wittend »

Wow! Thanks! I'll test it today, and post the outcome.

Dave
wittend
CodeLite Enthusiast
Posts: 44
Joined: Thu Oct 09, 2008 9:11 pm
Contact:

Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3

Post by wittend »

Eranif,

Seems fixed! Thanks for the prompt attention!
Great stuff, as always!

Dave
wittend
CodeLite Enthusiast
Posts: 44
Joined: Thu Oct 09, 2008 9:11 pm
Contact:

Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3

Post 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
wittend
CodeLite Enthusiast
Posts: 44
Joined: Thu Oct 09, 2008 9:11 pm
Contact:

Re: Difficulty with png icons in WxCrafter/Codelite 9.0.3

Post 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
Post Reply