corry@eniac.seas.upenn.edu (Chris Corry) (11/30/90)
Please excuse me if this is a repost but I posted this during Turkeyday wknd and I never saw it make it. This problem is really starting to get on my nerves and since I am a relative X novice I thought I'd let the collective wisdom of X-land (:->) take a look at it... THANKS AGAIN 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. THANKS TONS!! ONE TWO +-----------------------------+ +------------------------------+ |+-------+ | | | ||Label 1| | | +-----------------------+ | |+-------+ | | | | | |+-------+ | | | Label 1 | | ||Label 2| | | | | | |+-------+ | | +-----------------------+ | |+----+ | | | || OK | | | +-----------------------+ | |+----+ | | | | | | | | | Label 2 | | | | | | | | | | | +-----------------------+ | | | | +----+ | | | | | OK | | | | | +----+ | +-----------------------------+ +------------------------------+ ---------------------------+-------------------------------------------------- Chris Corry | //====// //=== //|| // //|| // Home University of Pennsylvania | //====// //=== // || // // || // on the corry@eniac.seas.upenn.edu | // //=== // ||// // ||// Range ---------------------------+--------------------------------------------------