Author Topic: wxSmith bug with wxChoice?  (Read 6434 times)

stefanos_

  • Guest
wxSmith bug with wxChoice?
« on: July 24, 2010, 08:14:26 pm »
Hello everyone.

Can someone please test a demo frame project by adding a wxChoice and try to add a few values from "Resources > Choice" please? I am adding values for how many times now and the "Show preview" displays them correctly but the actual application not!

If I am doing anything wrong, please let me know so.

I use the latest revision (6416) but the same issue existed from 6411.

Specs:

Windows XP Professional SP3
wxMSW-2.8.10
TDM's GCC 4.5.0

Thanks.

stefanos_

stefanos_

  • Guest
Re: wxSmith bug with wxChoice?
« Reply #1 on: July 24, 2010, 08:53:56 pm »
Hm...I closed wxs GUI file and worked immediately with source code files. I manually added 2-3 test string values and compiled my project. It was OK, but upon opening wxs file, my test values disappeared.


I added values in "Choice" area and re-compiled my project. The Show preview showed the actual values but after got suspicious, I opened wxs with internal editor and saw that my string values were not added.

Possible wxSmith bug. Please confirm.

Thanks.

Stefanos_

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: wxSmith bug with wxChoice?
« Reply #2 on: July 30, 2010, 10:02:46 am »
Works fine on linux.

Changing the sources directly has no effect unless you do it outside the //(* and //*) tags.
All code inside will be overwritten by wxSmith.

stefanos_

  • Guest
Re: wxSmith bug with wxChoice?
« Reply #3 on: July 30, 2010, 11:10:17 am »
I haven't checked it under GNU / Linux, but for sure the problems remain the same even with the latest revision. I do the same as before; I am adding string names in "Choices" and upon running the application, only the old values are shown.

With the "show preview" I can see them, but not otherwise. I have even re-compile the code, and still the same.

NOTE: I just checked my code under GNU / Linux Mint 9 (VirtualBox), and the same issue exists here. I would really appreciate it if someone could show me what I am doing wrong.

Regards,

stefanos_
« Last Edit: July 30, 2010, 12:16:56 pm by stefanos_ »

stefanos_

  • Guest
Re: wxSmith bug with wxChoice?
« Reply #4 on: July 30, 2010, 06:42:17 pm »
OK, more news, weirder though this time.

For some reason wxSmith does not accept any GUI tweaking (like string values in wxChoice, column labels in wxGrid and the like), not until I check-uncheck any style from wxFrame and recompile the code. As soon as I do this, I see immediate changes.

Is it because I'm under Windows XP? I don't have other versions of Windows.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: wxSmith bug with wxChoice?
« Reply #5 on: July 30, 2010, 07:51:36 pm »
Changes in wxSmith will never be visible without compiling your code.

EDIT:
If you use xrc-files the changes might be there without recompiling.
« Last Edit: July 30, 2010, 07:55:11 pm by jens »

stefanos_

  • Guest
Re: wxSmith bug with wxChoice?
« Reply #6 on: July 30, 2010, 10:13:34 pm »
well, until now all I was doing was recompiling the code and the error was there. After I "check-uncheck" any style enumeration, the changes were included.

If you are using Windows, can you please give a try and let me know? Currently I am on my laptop (Fedora 13) and I will give a shot right now.