Re: Cant get EVT_SPIN on Mac OS X working

2010-06-30 Thread ademmler
I have found the solution, the eventhandler needs to be named  
EVT_SPINCTRL

The documentation is wrong here.

Am 22.06.2010 um 02:43 schrieb ademmler:


Hi,

I am using wxPerl on Mac OS X trying to use SpinButtons. To get the  
start values works.

$frame-FindWindow('ID_SPINCTRL1')-GetValue();

For catching events I am using this:

EVT_SPIN($frame, $XID('ID_SPINCTRL1'), sub {

$R = $frame-FindWindow('ID_SPINCTRL1')-GetValue();

printSpinctrl1 R: $$R\n;

} );


But this does not work. Does somebody see what I am donig wrong.
thx Alexander




Cant get EVT_SPIN on Mac OS X working

2010-06-21 Thread ademmler

Hi,

I am using wxPerl on Mac OS X trying to use SpinButtons. To get the  
start values works.

$frame-FindWindow('ID_SPINCTRL1')-GetValue();

For catching events I am using this:

EVT_SPIN($frame, $XID('ID_SPINCTRL1'), sub {

$R = $frame-FindWindow('ID_SPINCTRL1')-GetValue();

printSpinctrl1 R: $$R\n;

} );


But this does not work. Does somebody see what I am donig wrong.
thx Alexander