What is the accepted way of doing multiple instances
of a window?

My problem is that I see no (good) way of finding
out which instance was clicked, etc... from inside
the callback.  If I have two windows and both have
a DoIt button then how do I get to window-specific
information from  main::DoIt_Clicked() ?

I could index it off of the active window but I'm
concerned that won't work in all cases, especially
for things like MouseMove.

Every example I have found uses file-level variables
for this sort of thing which implies only one per file.

I could give each object a unique name/package
and then define a lexical sub with the info
but that seems like an awful lot of work
for what must be a common problem.

How do you guys do it?

   - Eric B.

Reply via email to