subframes in SunView 3.2

Robert P. Clark clark at umn-cs.CS.UMN.EDU
Tue May 9 05:36:58 AEST 1989


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 at 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 at umn-cs.cs.umn.edu



More information about the Comp.sys.sun mailing list