Author Topic: wxsmith occassionally changes custom control style from "0" to ""  (Read 1805 times)

Offline greenbreen

  • Multiple posting newcomer
  • *
  • Posts: 11
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.

Offline seb_seb0

  • Almost regular
  • **
  • Posts: 166
Re: wxsmith occassionally changes custom control style from "0" to ""
« Reply #1 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).

Offline greenbreen

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: wxsmith occassionally changes custom control style from "0" to ""
« Reply #2 on: February 10, 2011, 08:09:33 pm »
Thanks--that works.