swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Windows [swarm 1.2]


From: Thorsten Schelhorn
Subject: Windows [swarm 1.2]
Date: Thu, 23 Jul 1998 12:35:29 +0100

I wonder what is the easiest way to build and _display_ a window.
So far, I exploited CommonProbeDisplay, but I guess there's a
better way to do it?

  topLevel = [Frame createBegin: globalZone];
  [topLevel setWindowGeometryRecordName: "top"];
  topLevel = [topLevel createEnd];
  [topLevel setWindowTitle: "Hello"];
  [topLevel withdraw];
  c_Frame =  [Frame createParent: topLevel];
 
  canvas = [ProbeCanvas createBegin: globalZone];
  [canvas setParent: c_Frame];
  [canvas setHorizontalScrollbarFlag: YES];
  canvas = [canvas createEnd];
 
  [c_Frame pack];
 
  topFrame =  [Frame createParent: canvas];
  [topFrame setBorderWidth: 0];
  [topFrame assertPosition];
  [topFrame pack];
  [topLevel deiconify];
  [topFrame assertGeometry];

draws a window; which of that is essential, which is redundant, and what's the
key method to (re)draw the window on the screen and to resize accordingly
to the child widgets?

Thorsten

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]