bonjour,
I am looking for a simple code to create 2 toplevel windows(widgets). I
lost myself between display, app_context, trying to create 2 toplevel
shells!
thank you for help.
NMF
Printable View
bonjour,
I am looking for a simple code to create 2 toplevel windows(widgets). I
lost myself between display, app_context, trying to create 2 toplevel
shells!
thank you for help.
NMF
"sosroot" <nomaafa@free.fr> wrote in message
news:1138273469.047757.281750@g43g2000cwa.googlegroups.com...[color=blue]
> bonjour,
>
> I am looking for a simple code to create 2 toplevel windows(widgets). I
> lost myself between display, app_context, trying to create 2 toplevel
> shells!
>
> thank you for help.
>
> NMF
>[/color]
Create the second one just like you would create any other widget.
#include <X11/Shell.h>
/* declare variables here */
top1= XtAppInitialize( &context, "top1", NULL, 0, &argc, argv, NULL, NULL,
0 );
top2= XtCreateWidget( "top2", topLevelShellWidgetClass, w1, args, nargs );
--
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Software Reuse Project
thank you for your example. What is w1?
"sosroot" <nomaafa@free.fr> wrote in message
news:1138430989.325015.60280@g14g2000cwa.googlegroups.com...[color=blue]
> thank you for your example. What is w1?
>[/color]
Sorry, I should have used "top1":
#include <X11/Shell.h>
/* declare variables here */
top1= XtAppInitialize( &context, "top1", NULL, 0, &argc, argv, NULL, NULL,
0 );
top2= XtCreateWidget( "top2", topLevelShellWidgetClass, top1, args, nargs );
-------------------------------------------------------------/
Actually it could be any widget in the first shell hirearchy.
--
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Software Reuse Project