Xref: utzoo comp.windows.x:28760 comp.windows.x.motif:1027 Path: utzoo!attcan!uunet!shelby!apple!sun-barr!newstop!sun!turnpike!argv From: argv%turnpike@Sun.COM (Dan Heller) Newsgroups: comp.windows.x,comp.windows.x.motif,ba.windows.x Subject: Re: Is there an equivalent to the OL _OL_WIN_BUSY in Motif? Keywords: OL, Motif, WM, busy_window Message-ID: <144251@sun.Eng.Sun.COM> Date: 26 Oct 90 03:15:47 GMT References: Sender: news@sun.Eng.Sun.COM Organization: O'Reilly && Associates Lines: 44 [note: I could not followup to comp.windows.open-look because that newsgroup doesn't exist (here, at least)] In article tracy@goshawk.Unify.Com writes: > Open Look has a particular feature that I am using, > and I would like to find an equivalent feature or method > in Motif (or in Xt!). Open Look has *lots* of features like this that are gravely needed in Motif. > The Open Look feature that I am using is the _OL_WIN_BUSY_ property > that a client may set on a window. When this property is set on a > window, the Open Look window manager assumes that that window is busy, > grays out the window header and traps all keyboard and mouse input to > the window. It sounds misleading, your last part -- it does not confine mouse movement to the window. It sounded as tho you implied that. It also changes the cursor to a timeout cursor. The fact that the cursor is specified causes consistency among all OL apps -- this is the part that Motif needs (a specific and consistent description of what should happen in such a state [popping up a "working dialog" is not sufficient]). > Different ideas I have considered using in Motif are: setting > XtNsensitive to FALSE on a parent widget inside a particular window, > and/or not accepting Focus events. What you can do is use XtGrabPointer()/XtGrabKeyboard() (both have masks to grab both the mouse and the keyboard) and you can specify a function to call in case of mouse or keyboard events. That function can call XBell(). The XtGrab* functions can also set the cursor to be whatever you want (might as well steal the OL cursor :-) and you have just about everything. > But, there doesn't seem to be any > way to ask MWM or other WM's to change the appearance of the window > header to appear inactive. That you're going to have to live without. dan ---------------------------------------------------- O'Reilly && Associates argv@sun.com / argv@ora.com Opinions expressed reflect those of the author only.