[wx 2.8.4, GTK+ 2, g++] Problem updating value of wxSpinCtrl in
wxSpinEvent
Frank Bennewitz
franklyn at gmx.net
Tue Jul 10 02:11:02 PDT 2007
Hi all,
in my application I have wxSpinCtrl that should increment and decrement integers not by 1 but by 2 so that I would always hav even or uneven numbers. My Problem now is that in the function I added to the event table with EVT_SPINCTRL(ID_SPIN_UNEVEN, MyFrame::OnSpinUneven) the Update of the integer doesn't work.
void MyFrame::OnGaussSpin(wxSpinEvent &event) {
int value = event.GetPosition();
event.SetPosition(val+2);
}
This is just a basic version of the function... I tried a lot of things. Can anyone help me with this problem? It seems very simple, but I don't have a clue. I have googled for that problem an d not found any solution. The method wxSpinEvent::SetPosition(int val) doesn't seem to update the value in the SpinCtrl.
WX : 2.8.4
OS : Ubuntu Linux / GTK+ 2
COMPILER: g++ (Eclipse/CDT)
Thanks!
Frank
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
More information about the wx-users
mailing list