[comp.windows.open-look] Panel, Canvases, and Frames....

kbj@jupiter.risc.com (Ken Johnson) (11/22/90)

I've been trying to find a solution to the following dilema and thought
I had one but alas it didn't work.  Any ideas on this approach to my problem.

I have a frame that must contain 3 canvases, 2 menu buttons, 4 text items,
and 4 regular buttons.  The frame is the parent of the 3 canvases and the
panel that contains everything else.  My problem is that the panel and
canvases aren't the same size so white rectangles fill in the portions of the
frame that are not covered by the canvases or panel.  Bottom line - it
looks like a half assed job.

Then, in a fit of possible brilliance it hit me.  The canvases and panel
are parented by the frame.  Suppose instead I have a frame, then a panel, and
the canvases and buttons.  Then the canvases are parented by a panel which can
fill the entire frame.  Furthermore, I can move the text items under the 
canvases like I want to do but can't.  Well, It doesn't seem to work as 
desired.  When the canvases are parented by the panel all 3 sit on top
of one another in the upper left hand corner of the panel and
cover the menu buttons that are supposed to be there.  When i try to 
place them like I place the items in the panel - using XV_X, xv_col(..)
that doesn't work either.  In fact they don't appear at all.

Somewhere there must be a kind caring soul who knows how to do what I
want.  Any advice would be greatly appreciated and passed on to other
frustrated, hurting souls who experience the true meaning of the 
proverb:

  'A good programmer produces only 10 lines of debugged code a day'

I think this is only true if they don't use X windows or have used X for
a year or more.


Ken Johnson                             Phone: 805-373-4487
Rockwell International Science Center   Comnet: 273-4487
1049 Camino Dos Rios A-18               FAX: 805-373-4383
Thousand Oaks, CA 91360                 e-mail: kbj@risc.com

       Anything can be proven by statistical methods if enough data
                        is gathered.....