[comp.windows.x] How does MOTIF do application_modal mode??

harper@applga.aa.cad.slb.com (Brett E. Harper) (11/06/90)

Hi,
   I have a question about MOTIF, but it relates to X also.  I am curious
   about how MOTIF implements its APPLICATION_MODAL mode for dialog boxes.
   I would like to know how MOTIF interacts with Xt and X to prohibit
   the focus from ever getting to a particular window.  I mean how does it
   stop the window manager from even considering a particular window as a
   candidate for receiving focus? 

   I would like to be able to do this myself.  To set some sort of resource
   that would tell the window manager (mwm) that a particular window is never
   supposed to get input focus.  Then at a later time I could reset this 
   resource to allow the window to once again get the input focus.

   Anybody have any ideas, or clues about how this mechanism works?????


   Also, related to this...
     Say you have a XmBulletinBoard with two Text widgets on it, and one has
     the input focus (i.e. the blinking cursor) and I would like to change
     the currently active Text widget to be the other one.  Is this possible?
     For instance, if the user clicked in one of the Text widgets, and the
     program determined that this widget is not supposed to have focus, can
     the program then force the input focus back to the other Text widget?

   Thanks for any help that you can give.

   Brett Harper

   harper@aaaca1.SINet.SLB.COM