Hello all,
This is my second attempt at sending this message. I sent it
earlier today, but a couple people reported that they received it
incompletely. I don't know why. I hope this'll work better.
Anyhow, I am trying to understand how to set the size of a Wx::Grid
so that it looks decen
Thanks. Updated.
I'll try out the other method of passing $self, it might save me
a global variable which I always hate.
Regards
Steve
-Original Message-
From: Johan Vromans [mailto:jvrom...@squirrel.nl]
Sent: 19 August 2009 16:26
To: wxperl-users@perl.org
Subject: Re: Events, again
test.pl
Description: Binary data
"Steve Cookson" writes:
> http://wxperl.pvoice.org/w/index.php/Event_Handlers
Good job, Steve!
A couple of remarks.
For a 2-arg event handler, you can pass the full $self object with a
wrapper:
Wx::Event::EVT_KILL_FOCUS($self->{field_1},
sub { event_handler_sub( $self, @_ ) } );
Alth
Hi People,
Thanks to all of you who have contributed to my understanding on events.
Although I've read the chapter in Bruce Perens so many times my head is
spinning it still wasn't sinking in. Anyhow, I've summarised what you've
all
said and added in some solutions to my own problems and put
Hi Mattia,
Thanks for this. In the end I used.
$self->EndModal(wxID_ADD);
Although using wxID_OK worked, it messed up the other wxID_OK.
According to the "Book", you can have multiple wxID_OK's in
your application but only one per dialog or frame.
Regards
Steve
-Original Mes
>Messaggio originale
>Da: steve.cook...@sca-uk.com
>Data: 19/08/2009
14.30
>A:
>Ogg: RE: Getting back out of a dialog box.
>
>OK, well Skip seems to work out of the top dialog, because
>the top level
button is defined as an OK button, but when
>I drop down a level the button is
define
OK, well Skip seems to work out of the top dialog, because
the top level button is defined as an OK button, but when
I drop down a level the button is defined as wxID_ADD.
But here the "$event->Skip;" doesn't cause the event handler
to drop through. I can change wxID_ADD to be wx_ID_OK, but
that
Hi Johan,
OK, that worked, I guess it depended on what $self was defined as.
I had:
my ($self, $event) = @_; # The first line of the event handler
If I put in:
$self->Skip;
I got:
"Can't locate object method "Skip" via package (etc)."
So then I tried:
"Steve Cookson" writes:
> If I put in and event filter to update the database, then OK doesn't close
> the Dialog box. If I don't put in an event then I can't update the DB.
With 'event filter' you mean you attach a handler to the OK button
with EVT_BUTTON?
If so, in this handler, did you use $s
10 matches
Mail list logo