void Physics_StudyFrame::OnButton2Click(wxCommandEvent& event)
{
for (int a=0; a<2; a++)
{
(StaticText2)->SetLabel(_("FirstClick new Text"));
a = a + 1;
}
}
I didn't look at any of your code, but this popped up immediately: why are you incrementing a twice? Once as part of the for loop (a++), and once at the end (a = a+1). while I have no idea what you're trying to do, I'd be shocked if this weren't seriously broken.
Bookmarks