Article View: comp.windows.interviews
Article #811Graphic help
From: Bill Roth
Date: Sat, 07 Nov 1992 20:42
Date: Sat, 07 Nov 1992 20:42
45 lines
1600 bytes
1600 bytes
I live a simple life. All I want to do is put a rectangle of some
sort(I'm not picky) into a graphicBlock that I have in my application,
which was generated by ibuild (3.0.1).
How do I do it? Please, somebody tell me.
In my current attempt, I've written the following, which core dumps:
----------------
#include <InterViews/panner.h>
#include <Unidraw/Graphic/grblock.h>
#include <Unidraw/Graphic/picture.h>
#include <Unidraw/Graphic/polygons.h>
#include <InterViews/strbrowser.h>
#include <InterViews/button.h>
#include "Viz.h"
#include <InterViews/2.6/_enter.h>
Viz::Viz(const char* name) : Viz_core(name)
{
int x,y;
x = y = 100;
PSBrush *p = new PSBrush(65535,10);
SF_Rect *r = new SF_Rect(100,100,200,200);
Picture *pic = new Picture;
r->FillBg(1);
r->SetBrush(p);
pic->Append(r);
graphic->SetGraphic(pic);
}
This runs just fine, but dumps somewhere after the MonoScene is
inserted into the application. Why?
Does anyone have a better idea?
--
-------------------------------------------------------------------
Bill Roth, University of Wisconsin Computer Sciences Dept.
Internet: roth@cs.wisc.edu. BITNET: ROTH@WISCPSL. HEPNET: PSL::ROTH
Technical Details
Message-ID:
<1992Nov7.204220.21840@cs.wisc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!rutgers!uwvax!feline.cs.wisc.edu!rothShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!rutgers!uwvax!feline.cs.wisc.edu!roth From: roth@feline.cs.wisc.edu (Bill Roth) Newsgroups: comp.windows.interviews Subject: Graphic help Message-ID: <1992Nov7.204220.21840@cs.wisc.edu> Date: 7 Nov 92 20:42:20 GMT Sender: news@cs.wisc.edu (The News) Organization: U of Wisconsin Madison - Computer Sciences Lines: 45