Article View: comp.windows.interviews
Article #435Showing an image without using InterViews event loop.
From: Adam Janin 5-3545
Date: Mon, 14 Sep 1992 15:23
Date: Mon, 14 Sep 1992 15:23
39 lines
1977 bytes
1977 bytes
Someone mentioned wanting to draw an image to an InterViews window
without using the standard InterViews event loop, initialization, etc.
Someone else said that this could be done, except that Session has to
be initialized. Note that Session::instance() returns the current
Session*, if any. It appears to return 0 if the session hasn't been
initialized yet. So:
my_library_routine() {
Session* session = Session::instance();
if (!session) {
session = new Session("foo", argc, argv);
}
WidgetKit& kit = *WidgetKit::instance();
const LayoutKit& layout = *LayoutKit::instance();
...
}
Hope this helps,
Adam Janin
----------------------------------------------------------------------
| Adam Janin |
| Boeing Computer Services |
| Advanced Computing Systems |
| P.O. Box 24346, MS 7L-22 |
| Seattle, WA 98124-0346 |
| janin@espresso.boeing.com |
| Work: (206) 865-3545 |
| Fax: (206) 865-2966 |
| Home: (206) 557-0615 |
|--------------------------------------------------------------------|
| |
| When a fly lands on the ceiling, does it do a half roll or a |
| half twist? |
| |
----------------------------------------------------------------------
Technical Details
Message-ID:
<9209141523.AA23408@espresso.bcs.eca>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!espresso.boeing.com!janinShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!espresso.boeing.com!janin From: janin@espresso.boeing.com (Adam Janin 5-3545) Subject: Showing an image without using InterViews event loop. Message-ID: <9209141523.AA23408@espresso.bcs.eca> Sender: news@shelby.stanford.edu (USENET News System) Organization: Internet-USENET Gateway at Stanford University Date: Mon, 14 Sep 1992 15:23:32 GMT Lines: 39