Code::Blocks Forums

User forums => Help => Topic started by: greenbreen on February 09, 2011, 06:01:57 pm

Title: wxsmith occassionally changes custom control style from "0" to ""
Post by: greenbreen on February 09, 2011, 06:01:57 pm
Hello,

I'm using a custom control in wxsmith, and it seems like sometimes when I change something using wxsmith, it will change my style setting in the custom control from "0" to "" (the empty string), which causes compile errors.  It's easy to manually fix it every time it happens, but it's a little annoying.  Has anyone else seen this?  Is there a solution?  I can condense my code into a short example if anyone wants to look into it.
Title: Re: wxsmith occassionally changes custom control style from "0" to ""
Post by: seb_seb0 on February 09, 2011, 09:29:31 pm
I have seen the problem.
There is an easy workaround: put the style bits inside the constructor (1st line in the property grid, replace $(STYLE) with your style).
Title: Re: wxsmith occassionally changes custom control style from "0" to ""
Post by: greenbreen on February 10, 2011, 08:09:33 pm
Thanks--that works.