Article View: comp.windows.interviews
Article #1128How to display a composition?
From: Paul Calder
Date: Fri, 10 May 1991 20:09
Date: Fri, 10 May 1991 20:09
18 lines
901 bytes
901 bytes
Helen,
The 'random' window happens because you haven't defined a background
(the colored dots come from an unitialized pixmap). You need to
put the top-level glyph inside a Background.
int main(int argc, char** argv)
{
Color* bg = world.background();
...
ApplicationWindow window(new Background(viewer, bg));
window.map();
world.run();
return 0;
}
Technical Details
Message-ID:
<9105102009.AA11504@uluru.Stanford.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!stanford.edu!ULURU.STANFORD.EDU!calderShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!stanford.edu!ULURU.STANFORD.EDU!calder From: calder@ULURU.STANFORD.EDU (Paul Calder) Newsgroups: comp.windows.interviews Subject: How to display a composition? Message-ID: <9105102009.AA11504@uluru.Stanford.EDU> Date: 10 May 91 20:09:54 GMT Sender: news@shelby.stanford.edu (USENET News System) Reply-To: calder@lurch.stanford.edu Organization: Internet-USENET Gateway at Stanford University Lines: 18