1. setHandler(), Pro v. Con
- Posted by Jon Snyder <jongsnyder at hotmail.com> Aug 12, 2002
- 568 views
I noticed that win32lib v 0.57 gives documentation for using setHandler() and not modifiying it directly with the event sequences. --using this setHandler(okButton, w32HClick, routine_id("myClickHandler")) --instead of this onClick[ okButton] = routine_id( "myClickHandler") Why the change? What are the advantages? What are the disadvantages?
2. Re: setHandler(), Pro v. Con
- Posted by Derek Parnell <ddparnell at bigpond.com> Aug 13, 2002
- 580 views
setHandler() has been there for quite awhile. It is not a new thing. I got to documenting better when I added extra functionality to setHandler() - such as having a chain of handlers for the same event. The main advantage over directly modifing the global variables, onXXX, is that it enables the library to change its internals without breaking existing code. For example, I can add extra parameters to pass to the handlers now. By exposing win32lib interals by using global variables, it binds the internals to code using the library. I wish to uncouple this so that it is easier to improve the internals without breaking code using the library. ----- Original Message ----- From: "Jon Snyder" <jongsnyder at hotmail.com> To: "EUforum" <EUforum at topica.com> Sent: Tuesday, August 13, 2002 3:04 PM Subject: setHandler(), Pro v. Con > > > I noticed that win32lib v 0.57 gives documentation for using > setHandler() and not modifiying it directly with the event sequences. > > --using this > setHandler(okButton, w32HClick, routine_id("myClickHandler")) > --instead of this > onClick[ okButton] = routine_id( "myClickHandler") > > Why the change? What are the advantages? What are the disadvantages? > > > >
3. Re: Re: setHandler(), Pro v. Con
- Posted by jbrown105 at speedymail.org Aug 15, 2002
- 619 views
On 0, Derek Parnell <ddparnell at bigpond.com> wrote: > > setHandler() has been there for quite awhile. It is not a new thing. I got > to documenting better when I added extra functionality to setHandler() - > such as having a chain of handlers for the same event. > Ok, I'll add setHandler() as an alias for connect() in Llama/GTK, and I'll give it the ability to chain handlers. What other "extra functionality" does setHandler() have? > > ----- Original Message ----- > From: "Jon Snyder" <jongsnyder at hotmail.com> > To: "EUforum" <EUforum at topica.com> > Sent: Tuesday, August 13, 2002 3:04 PM > Subject: setHandler(), Pro v. Con > > > > I noticed that win32lib v 0.57 gives documentation for using > > setHandler() and not modifiying it directly with the event sequences. > > > > --using this > > setHandler(okButton, w32HClick, routine_id("myClickHandler")) > > --instead of this > > onClick[ okButton] = routine_id( "myClickHandler") > > > > Why the change? What are the advantages? What are the disadvantages? > > > > BTW, where can I obtain a version of the Win32Lib documentation that can be read via Linux (i.e. text files, html files, maybe .rtf files?) jbrown -- http://fastmail.fm/ - Access your email from home and the web
4. Re: setHandler(), Pro v. Con
- Posted by Juergen Luethje <jluethje at gmx.de> Aug 17, 2002
- 545 views
jbrown <jbrown105 at speedymail.org> wrote: <snip> > BTW, where can I obtain a version of the Win32Lib documentation that > can be read via Linux (i.e. text files, html files, maybe .rtf files?) Almost all Win32Lib documentation is in HTML and plain TXT format, isn't it? Regards, Juergen
5. Re: setHandler(), Pro v. Con
- Posted by Derek Parnell <ddparnell at bigpond.com> Aug 17, 2002
- 592 views
Yes. There is no Microsoft specific doc formats for win32lib. It comes as HTML. ---------------- cheers, Derek Parnell ----- Original Message ----- From: "Juergen Luethje" <jluethje at gmx.de> To: "EUforum" <EUforum at topica.com> Subject: Re: setHandler(), Pro v. Con > > jbrown <jbrown105 at speedymail.org> wrote: > > <snip> > > BTW, where can I obtain a version of the Win32Lib documentation that > > can be read via Linux (i.e. text files, html files, maybe .rtf files?) > > Almost all Win32Lib documentation is in HTML and plain TXT format, isn't > it? > > Regards, > Juergen > > > >
6. Re: setHandler(), Pro v. Con
- Posted by jbrown105 at speedymail.org Aug 17, 2002
- 567 views
Thanks for the info, Ron Tarrant gave me the documentation for Win32LIb v.55 and a link for v.57. It has proven very helpful to me. On 0, Derek Parnell <ddparnell at bigpond.com> wrote: > > Yes. There is no Microsoft specific doc formats for win32lib. It comes as > HTML. > ---------------- > cheers, > Derek Parnell > ----- Original Message ----- > From: "Juergen Luethje" <jluethje at gmx.de> > To: "EUforum" <EUforum at topica.com> > Sent: Saturday, August 17, 2002 10:24 PM > Subject: Re: setHandler(), Pro v. Con > > > > jbrown <jbrown105 at speedymail.org> wrote: > > > > <snip> > > > BTW, where can I obtain a version of the Win32Lib documentation that > > > can be read via Linux (i.e. text files, html files, maybe .rtf files?) > > > > Almost all Win32Lib documentation is in HTML and plain TXT format, isn't > > it? > > > > Regards, > > Juergen > > > > -- http://fastmail.fm - Click it, you'll feel better