News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

wxsmith occassionally changes custom control style from "0" to ""

Started by greenbreen, February 09, 2011, 06:01:57 PM

Previous topic - Next topic

greenbreen

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.

seb_seb0

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).