🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #1502

More Viewer problems/questions

#1502
From: Willard J. Robinson
Date: Thu, 20 Jun 1991 19:32
52 lines
2334 bytes
I have a somewhat simple question - can you display an empty Viewer?

I have been hacking a simple editor based on idraw and want a window
that looks like:

    _____________________
   | menu bar                              |
   |-----------------------|
   |f  |                                          |
   |i  |                                          |      
   |x |  viewer                            |
   |e |                                          |
   |d |                                          |
   |   |                                          | 
   |V |                                         |
   |G |                                         |
   ------------------------

So I constructed a tray as follows:

 _tray->HBox(_tray, commands, _tray); // commands is the menubar
 _tray->HBox(_tray, hborder, _tray);
 _tray->HBox(_tray, post, _viewer, _tray);// post is the fixed VGlue

 _tray->VBox(_tray, commands, hborder, post, _tray);
 _tray->VBox(_tray, commands, hborder, _viewer, _tray);

and the viewer was set up using:

 GraphicView* view = (GraphicView*) _comp->Create(COMPONENT_VIEW);
 _comp->Attach(view);
 view->Update();
 _viewer = new Viewer(this, view, page, grid);// page and grid were set-up also


The problem is that the viewer is not displaying when the window comes up
and after studying the Idraw code for a while I cannot figure out what I
am doing wrong(the example above generates a core dump).

I also tried setting the 'natural size' variables in the Viewer - the frame
of correct size came up and the program promptly crashed.

Since I am an InverViews novice any help would be appreciated.

 thanks
Will Robinson
(please followup to this post or send mail to robinson@asds.enet.dec.com)


digital equipment
stow, ma
Technical Details
Message-ID: <3431@shodha.enet.dec.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!pa.dec.com!shodha.enet.dec.com!akira!robinson

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!pa.dec.com!shodha.enet.dec.com!akira!robinson
From: robinson@akira.enet.dec.com (Willard J. Robinson)
Newsgroups: comp.windows.interviews
Subject: More Viewer problems/questions
Message-ID: <3431@shodha.enet.dec.com>
Date: 20 Jun 91 19:32:18 GMT
Sender: news@shodha.enet.dec.com
Reply-To: robinson@akira.enet.dec.com (Willard J. Robinson)
Organization: Digital Equipment Corporation
Lines: 52