jones@kings.wharton.upenn.edu (Christopher V. Jones) (07/14/90)
I am building an application that creates several topLevelShellWidgets. The application needs to be able to move those widgets anywhere on the display. Yes, the application is at the mercy of the window manager, but it would be nice to be able to accomplish this task. Under decw, I managed (with the help of the newsgroup) to get it to work. First, the widget is unrealized, then the XtNx and XtNy resources of the topLevelShellWidget are set, and then the widget is realized again. Under mwm, this strategy does not appear to work. Moreover, even when the widget is first realized, mwm appears to ignore those resources. It appears that mwm attempts to perform a "nice" positioning of new topLevelShellWidgets. I have not found a resource, etc, that can be set to override mwm's edicts. One approach that I have not yet tried, but might work, is to reincarnate all the topLevelShellWidgets as modeless dialog widgets. For dialogs, mwm appears to define a XmdefaultPosition resource to allow specific positioning of dialogs when they are managed. Anyone know if this will work? Anyone know of a way to coerce mwm to position topLevelShellWidgets specifically? Thanks for the help. Chris Jones Department of Decision Sciences The Wharton School The University of Pennsylvania Philadelphia, PA 19104 JONES@wharton.upenn.edu 215-898-7290