[comp.windows.interviews] TBBox problem

rekimoto@ccs.mt.nec.co.jp (Jun Rekimoto) (06/27/91)

I am currently working with InterViews 3.0 Beta (Sparc, AT&T C++2.0, 
patch 1 through 8).

I have found a little trouble with TBBox. I want to get a layout such as:
				
      +++++++ ++++++++++++++++++++
      +     + +                  +
      +  A  + +                  +
      +     + +                  +
      +++++++ +                  +
      +++++++ +                  +
      +     + +       C          +
      +  B  + +                  +
      +     + +                  +
      +++++++ +                  +
              +                  +
              +                  +
              ++++++++++++++++++++

(Each box represents a glyph.)

To implement above, I wrote a simple program:

----------------------------------------------------------------------
#include <InterViews/stencil.h>
#include <InterViews/background.h>
#include <InterViews/bitmap.h>
#include <InterViews/box.h>
#include <InterViews/window.h>
#include <InterViews/world.h>

int main(int argc, char** argv) {	        	 
    World world("Test", argc, argv);	        	 
    Color* fg = world.foreground();	        	 
    Color* bg = world.background();	        	 
    		    			        	 
    Glyph* A = new Stencil(Bitmap::open("a.bitmap"), fg);
    Glyph* B = new Stencil(Bitmap::open("b.bitmap"), fg);
    Glyph* C = new Stencil(Bitmap::open("c.bitmap"), fg);
		    			        	 
    Glyph* top = new Background(new LRBox(new TBBox(A, B), C), bg);
    		    			        	 
    Window* w = new ApplicationWindow(top);  
    w->map();	    			     
    world.run();    			     
    return 0;	    			     
}
----------------------------------------------------------------------

However, the result was different from my expectation.
	  				     	      
              ++++++++++++++++++++
              +                  +
              +                  +		      
              +                  +
              +                  +
              +                  +
              +       C          +		 
              +                  +
      +++++++ +                  +		
      +     + +                  +		      
      +  A  + +                  +		      
      +     + +                  +		      
      +++++++ ++++++++++++++++++++		      
      +++++++					      
      +     +					      
      +  B  +					      
      +	    +					      
      +++++++					      
						      
Is this a known bug or feature (or did I make a mistake)?
Any suggestions are appreciated.
--
                   Jun Rekimoto                  | rekimoto@ccs.mt.nec.co.jp
                   NEC Software Engineering Lab. | +81 3-5476-1084