Breaking the widget tree

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
Breaking the widget tree

Submitted by Anonymous on Fri, 06/13/2003 - 14:57. Developers
Is it possible to create/begin/init/birth/spawn/whatever/etc a new instance of a Motif program from inside of another?

What I`m wondering about is whether or not I can create a window from within a callback without access to any parents by just declaring a new XtAppContext and starting from scratch. I can`t use dialogs because the original callback calls many other layered functions inside of a shared library, one of these being the function that I want to pop up a window in. I`ve found a workaround by creating a custom shared library to hold/pass the values of a parent widget from the top layer to where I need it down below, but it`s giving me nightmares trying to compile it with the rest of what I`m working on.

Any help/quick admonishment for even entertaining the thought is greatly appreciated (yes, I will even go so far to say that I will love you forever. No, really. And I`m sexy. I promise.)

Ben

ICS_support

Yes, sure, of course you can -- but you`ll have to do event management locally there with a separate loop. For some code, see the information on "how do I pop up a yes/no dialog in-line?" in the comp.windows.x.faq (http//www.faqs.org) and similar code in Volume 6A (revised version only).