Author Topic: wxSmith deletes initialisation of dialog objects  (Read 1978 times)

Offline geronet

  • Multiple posting newcomer
  • *
  • Posts: 14
wxSmith deletes initialisation of dialog objects
« on: October 22, 2007, 07:30:58 pm »
Hello out there,
got a little problem with the newest CodeBlocks, i update it often to the latest nightly but with svn version 4540 and 4545 wxSmith deletes the code at the initialize-section:
Code: [Select]
// Constructor of Dialog
Solltemperatur = (wxTextCtrl*)FindWindow(XRCID("ID_TEXTCTRL1"));

These lines were made from previos versions of wxSmith, but if i open the dialog in the resource editor the line with "Solltemperatur" and "FindWindow" dissapears and the object is not initialised, resulting to an access violation on runtime if i want to read or write the textcontrol. Even if i create a new control the line with "FindWindow" doesn't show up.

In the header file the object is always there, no matter if "Is member" is checked or not.
Code: [Select]
// Class deklaration of Dialog
wxTextCtrl* Solltemperatur;

I hope someone can help, Codeblocks is really the best IDE i've ever seen, i have mostly multiple projects opened up (great!) but could not find any solution with the samples or with the search function.
PS: wxWidgets 2.8.6
Greetings, Stefan

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: wxSmith deletes initialisation of dialog objects
« Reply #1 on: October 22, 2007, 09:41:24 pm »
Ok, it looks like some wxSmith bug. I'll see what could be wrong, probably it's some small bug so hopefully it will be fixed today.

Thanks for the feedback.