[comp.windows.x] Problems with a generic message box

corry@eniac.seas.upenn.edu (Chris Corry) (11/25/90)

	Hi.  I'm creating a hypertext authoring system running under X and
have a need for a collection of routines which will popup a message box which
displays two label widgets and an 'OK' button (using the Athena widget set).
The stuff in the label widgets is just informational and the box simply
disappears when the user hits the 'OK' button. Since I want the option of
making the routine a callback, all parameters to the routine are passed in a
structure (things like fonts and text for each of the label widgets, and the
new size of the shell widget which contains them).
	Here's my problem: the routine works fine except for the first time.
I want to get something like ONE (below) but the first time I get something
more like two (using the same arguments, of course).  Everytime after that it
works fine.  All my routine does is place the shell widget based on the
position of topLevel, change fonts and text using XtSegArg & XtSetValues,
performs an XtMakeResizeRequest on the shell, and then pops up the widget.
The labels are set as resizable.  The two Labels and the Command are under a
Form which is in turn under the Shell.

ALSO:   I read a posting a little while ago about someone looking for a text
        widget which would allow you to place a scrolling bitmap into to (like
        a hypertext button). I have the same problem and CANNOT use Andrew.
        Any ideas??

				THANKS TONS!!


                ONE                                 TWO
  +-----------------------------+       +------------------------------+
  |+-------+                    |       |                              |
  ||Label 1|                    |       | +-----------------------+    |
  |+-------+                    |       | |                       |    |
  |+-------+                    |       | |        Label 1        |    |
  ||Label 2|                    |       | |                       |    |
  |+-------+                    |       | +-----------------------+    |
  |+----+                       |       |                              |
  || OK |                       |       | +-----------------------+    |
  |+----+                       |       | |                       |    |
  |                             |       | |        Label 2        |    |
  |                             |       | |                       |    |
  |                             |       | +-----------------------+    |
  |                             |       | +----+                       |
  |                             |       | | OK |                       |
  |                             |       | +----+                       |
  +-----------------------------+       +------------------------------+

--
---------------------------+--------------------------------------------------
Chris Corry                |     //====//   //===   //||  //   //||  //
University of Pennsylvania |    //====//   //===   // || //   // || //  Ho Hum
corry@eniac.seas.upenn.edu |   //         //===   //  ||//   //  ||//