RE: wxGlade Generated Code

2009-08-14 Thread Steve Cookson
Hi Ryan, Thanks for your kind and thought-out reply. Well, I think you're right about disabling alt-tab and similar events. I should do that. Not just for the reasons you list, but also because I am creating a totally controlled environment, so we just don't want all that op sys stuff visible

Re: wxGlade Generated Code

2009-08-14 Thread Ryan Jendoubi
[ Sorry again all for my double postings ] Hi Steve, Steve Cookson wrote: So that's how it works! So if I want to detect tabbing out of a field to trigger validation, I use the lose focus event (EVT_KILL_FOCUS) on the control. But alt-tab (and I guess alt-esc etc) to another app also trigger

Re: wxGlade Generated Code

2009-08-14 Thread Ryan Jendoubi
Hi James, GMAIL - James McDonald wrote: I am not really understanding the event subsystem very well. Of course I have looked at the documentation but due to my lack of understanding I still am not grasping the concept. I have little idea of what $event->Skip means and where in the block it sho

RE: wxGlade Generated Code

2009-08-14 Thread Steve Cookson
Hi Ryan, So that's how it works! So if I want to detect tabbing out of a field to trigger validation, I use the lose focus event (EVT_KILL_FOCUS) on the control. But alt-tab (and I guess alt-esc etc) to another app also trigger it. How can I filter out alt-tab etc? Regards Steve -Ori

Re: wxGlade Generated Code

2009-08-14 Thread Ryan Jendoubi
[ Apologies if this was received before; I think I had a problem after changing my subscription address, and it wasn't showing up on nntp.perl.org~ ] Hi James, GMAIL - James McDonald wrote: I am not really understanding the event subsystem very well. Of course I have looked at the documentati

RE: wxGlade Generated Code

2009-08-14 Thread Steve Cookson
Whoops, I removed all references to the $i parameter before I sent, but I forgot to remove: "In this routine, you should ignore the $i parameter." Regards Steve -Original Message- From: Steve Cookson [mailto:steve.cook...@sca-uk.com] Sent: 14 August 2009 09:54 To: 'wxperl-users@per

RE: wxGlade Generated Code

2009-08-14 Thread Steve Cookson
Hi Johan, Yes it's true I don't change it when I have a simple form. But most of my forms are more complicated so I have to create them programmatically. Eg I have a form with a wxNotebook with a variable number of tabs. I have to create the tabs dynamically in a loop, so it is easier to set t

Re: wxGlade Generated Code

2009-08-14 Thread Johan Vromans
"Steve Cookson" writes: > However on the Glade code, while I wrote my whole prototype In > Glade, and I wouldn't have progressed as fast as I have without it, > I don't like its programmatic structure. [...] This makes the code > much more maintainable. I think there's a misunderstanding here. w

RE: wxGlade Generated Code

2009-08-14 Thread Steve Cookson
Hi James, One more thing I've discovered. If you set the ID in the first place then you know what it means. So instead of passing -1 (wxANY), pass a positive integer of your own invention. Apparently all wxPerl ids are negative. Regards Steve -Original Message- From: GMAIL - James

RE: wxGlade Generated Code

2009-08-14 Thread Steve Cookson
Hi James, I totally agree with you. I'm also failing to grasp this. If Anyone can point me to some documentation that would be great. However on the Glade code, while I wrote my whole prototype In Glade, and I wouldn't have progressed as fast as I have without it, I don't like its programmatic