I tried adding what you told me but it's like the line
Code: Select all
wxLogMessage("firstValue = %d", firstValue);
I think because it(=this line I added, together with " x = firstValue;") exists inside some if-else statements, which somehow work outside the button (when they are in the main, without
the gui) but not inside