[Fxruby-users] Re: How to use FXWindow::attach()? (was: What's New in FOX 1.2)
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <ly...@kn...> - 2004-06-26 11:48:19
|
On Jun 25, 2004, at 11:48 AM, rich lyman wrote: > In the section: > > http://www.knology.net/~lyle/fox/1.2/ar01s03s62.html > > What does 'foreign window' translate into? A different window in FOX, > or any other window in the OS? > > "The new attach() member function allows a foreign window to be > swallowed into the FOX widget tree." > > Sorry if this question is simple... No, not a simple question. In fact, I probably glossed over that bit in the documentation because it's a little unclear to me what attach() is useful for. The idea is that you can embed a "foreign" window, i.e. some other application's window, into your FOX application. I think the way this works (at least in C++) is that you'd first create a generic FOX window, FXWindow *win = new FXWindow(...); and then call its attach() member function, passing in a X-Window handle (XID) or a Win32 window handle (HWND). Obviously, very platform-specific stuff, and I'm curious about how well this works in practice. You certainly wouldn't be able to generate FOX messages from events occurring in those foreign windows (I think?) I'm Cc'ing this to the foxgui-users list, because I'd like to know if anyone is using this feature successfully. ;) |