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

Re: wxGlade Generated Code

2009-08-14 Thread Johan Vromans
Steve Cookson steve.cook...@sca-uk.com 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

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

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:

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

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

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 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