windows it manipulates. Is it possible to attach to a window/control created by some other application? Say I have a handle of a main window of Windows calculator. How do I turn it into Win::GUI object?
Interesting question. As a quick/dirty answer, yes it could be possible. The basic problem is that when Win::GUI object's are destroyed the underlying window handle is also "destroyed".This could be solved by having some sort of flag to say if Win::GUI actually owns the object or not.
As I type I'm starting to think of other issues - but I'm sure work arounds could be found.
What kind of methods/functions would you want to call on these objects? Cheers, jez