Robert May wrote: > > but as a quick > > workaround in my apps I store the perl objects in the window hash: > It's better practice to use the UserData() or ClassData() methods to > store data with a window - that's the documented interface - Yup I've noticed, it can be quite useful. Here's a real world example in my first major Win32::GUI project: in my little Perl drum machine I had 16 checkboxes without labels and had a unified -onClick event handler for all of them, which just tells the current track object to check the step number to which the box corresponds. I was faced withthe the problem of how to identify which box is which and storing its number as the user data 1 .. 16 solved this elegantly. I just ask the box whether it is checked and query the user data, which gives me enough info.
-- With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED]) Accessibility, game music, synthesizers and programming: http://www.student.oulu.fi/~vtatila