clark@umn-cs.CS.UMN.EDU (Robert P. Clark) (05/09/89)
I've just started doing some programming on Sun 3/50s. I'm writing an
application under SunView 3.2, and have a small problem. I'm simply
trying to create a base frame, then create another frame which is a
subframe of the base frame. This works fine, but the subframe is
displayed behind the base frame. I want it to be created on top of the
base frame. Why does this happen? A frame is supposed to be just another
window type, like a panel. But the panel is displayed on top of its
parent frame. Am I confused?
Here's the code I use to create the 2 frames. Can anyone give a confused
novice some help?
Thanks,
Bob Clark clark@umn-cs.cs.umn.edu
#include <suntool/sunview.h>
main()
{
Frame baseframe, subframe;
baseframe = window_create(NULL, FRAME, /* create base frame */
FRAME_LABEL, "Base Frame",
0);
subframe = window_create(baseframe, FRAME, /* create sub-frame */
FRAME_LABEL, "Sub Frame",
FRAME_SHOW_LABEL, TRUE,
WIN_SHOW, TRUE,
0);
window_main_loop(baseframe);
exit(0);
}
Bob Clark clark@umn-cs.cs.umn.edu