Article View: comp.windows.interviews
Article #424Re: Interviews windows as standalone library apps
From: Chen Wang
Date: Sat, 12 Sep 1992 05:20
Date: Sat, 12 Sep 1992 05:20
36 lines
1283 bytes
1283 bytes
Hi, all:
I did something like this for our Knowledge Base. Basically,
for us, if you send a message to an Object like "display", it will
call the appropriate IV function to map the appropriate window.
However, you must have "Session* session" as a global variable
to make the Styles and Backgrounds uniform for all windows.
Here a brief outline of what I have in mind:
Class MyClass : public MonoGlyph {
public:
MyClass (Raster*);
}
put MyClass into Scrollable.
hehe, I wrote Scrollable, so I use it. :) :) :)
have a funtion like:
void display_image(const char* name) {
Raster* r = Raster::load(name);
MyClass m = new MyClass(r);
ApplicationWindow a = new ApplicationWindow(m):
a->map();
session->run(); // session is a global variable.
}.
I hope this helps, :)
-- Chen Wang
Technical Details
Message-ID:
<9209120520.AA18636@ie.utoronto.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!IE.UTORONTO.CA!chenShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!IE.UTORONTO.CA!chen From: chen@IE.UTORONTO.CA (Chen Wang) Subject: Re: Interviews windows as standalone library apps Message-ID: <9209120520.AA18636@ie.utoronto.ca> Sender: news@shelby.stanford.edu (USENET News System) Organization: Internet-USENET Gateway at Stanford University Date: Sat, 12 Sep 1992 05:20:20 GMT Lines: 36