"be consistent" | |
PerlMonks |
Re: Re: win32::Gui -- Paradigm problem...How do you get info back from a dialog?by dada (Chaplain) |
on Jul 05, 2002 at 09:45 UTC ( [id://179594]=note: print w/replies, xml ) | Need Help?? |
BrowserUk,
there is a difficult in what you say here: Win32::GUI itself makes heavy usage of that "extra" window words for its own business. they're used to store pointers to Perl callbacks, window properties that are not directly related to the underlying API (eg. which event model to use), and lot of other stuff that just makes Win32::GUI works. so it's not advisable at all to use Get/SetWindowLong() unless you have a very, very deep knowledge of the module's guts. the functions are there because I think if someone wants to hack deeply, he should be able to do it. but they're not for everyone (or "for the faint of heart", as they say :-). this should've been made clearer in the docs, but you all know what a mess the docs are at this point, don't you? so I would suggest to talwyn: go the Perlish way, store the results somewhere in Perl (one global hash would be my best bet).
cheers,
In Section
Seekers of Perl Wisdom
|
|