How to change Input Window

New Message Reply Date view Thread view Subject view Author view

YAMANAKA MASAHIKO (wryml++at++dimwit.dst.nk-exa.co.jp)
Wed, 16 Jul 1997 10:53:46 +0900


Hello all,
This might be a proper question for this mailing list, however please let me
ask...

I made 2 simple test programs.

One is the launcher which uses some Xt routines like...

  Widget toplevel = XtInitialize(...);
  Widget fmWidget = XtVaCreateManagedWidget(...xmFormWidgetClass, toplevel,...);
  Widget cfWidget = XtVaCreateManagedWidget(...xmFormWidgetClass, fmWidget,...);
  XtRealizeWidget( toplevel );

  char cmd[512];
  sprintf( cmd, "%s %d", argv[1], XtWindow(cfWidget) );
  system( cmd );
  XtMainLoop();

And another is the performer-based application which is launched by launcher.
In my test, I used complex.C.
I changed it to...

after Shared->pw = new pfPipeWindow(p);,
  Window xWin = (Window)atoi( argv[1] );
  Shared->pw->setWSWindow( XOpenDisplay(0), xWin );

As I don't use InitXInput(), it works well, however it doesn't accept any events.
Otherwise when I use InitXInput(), it doesn't work, so I tried to make new Window
accepting the events, but I couldn't.

Of course there is a way making the launcher process the events, send some commands
to the perf-app, and perf-app reads it with no-wait.
But I want to let the perf-app accept/process the events.

Could anyone please direct me?

Any help will be greatly appreciated!!!

Thanks,

--
M.Y.
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:37 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.