>>>>> On Fri, 22 Feb 2002 22:21:19 GMT, Martin Simmons <[EMAIL PROTECTED]> said:
Martin> 1) It appears to only work for simple cases like the mainw test and my
Martin> previous text-value-same-address test case. I'm not sure what 'simple'
means,
Martin> but for our application (LispWorks), _XmPickupUnspecifiedPixmaps() is called
Martin> too early because we have multiple TopLevelShells under a single
Martin> ApplicationShell. It looks like there should to be more calls to
Martin> _XmPickupUnspecifiedPixmaps(), because new TopLevelShells can be opened
Martin> on-the-fly.
Here is an example that shows this problem:
------------------------------------------------------------------------------
#include <Xm/Xm.h>
#include <Xm/PushB.h>
XtAppContext app;
Widget appshell, mainshell;
void make_a_window();
void make_a_window_callback(Widget button, XtPointer client_data,
XtPointer call_data)
{
make_a_window();
}
void make_a_window()
{
Widget shell = XtVaCreatePopupShell("main",
topLevelShellWidgetClass,
mainshell,
NULL);
Widget button = XtVaCreateManagedWidget("new",
xmPushButtonWidgetClass,
shell,
NULL);
XtAddCallback(button, XmNactivateCallback, make_a_window_callback, NULL);
XtRealizeWidget(shell);
XtPopup(shell, XtGrabNone);
}
int
main(int argc, char **argv)
{
appshell = XtVaAppInitialize(&app, "Shells", NULL, 0,
&argc, argv,
NULL, NULL);
mainshell = XtVaCreatePopupShell("main",
topLevelShellWidgetClass,
appshell,
NULL);
XtRealizeWidget(mainshell);
make_a_window();
XtAppMainLoop(app);
}
------------------------------------------------------------------------------
__Martin
_______________________________________________
Lesstif mailing list
[EMAIL PROTECTED]
https://terror.hungry.com/mailman/listinfo/lesstif