Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!rice!sun-spots-request From: clark@umn-cs.CS.UMN.EDU (Robert P. Clark) Newsgroups: comp.sys.sun Subject: subframes in SunView 3.2 Keywords: Windows Message-ID: <12356@umn-cs.CS.UMN.EDU> Date: 8 May 89 19:36:58 GMT Sender: usenet@rice.edu Organization: University of Minnesota, Minneapolis Lines: 39 Approved: Sun-Spots@rice.edu Original-Date: 27 Apr 89 17:05:26 GMT X-Sun-Spots-Digest: Volume 7, Issue 276, message 18 of 18 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 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