Retrieving Connection Information
You can access the topmost shell created by Views by calling the member function topShell of the IlvDisplay class. The returned value must be converted to a Widget.
The Xt application context is returned by the function IlvApplicationContext. The returned value must be converted to an XtAppContext.
To get all the information about a connection to an X Window application, you must use the following functions:
XtAppContext appContext = (XtAppContext)IlvApplicationContext();
Widget topLevel = (Widget)display->topShell();
Before using the IlvApplicationContext function, add the following to the application code:
extern XtAppContext IlvApplicationContext();
To use the XtAppContext object, refer to the Xt documentation.
Published date: 05/24/2022
Last modified date: 02/24/2022