Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!sdd.hp.com!mips!pacbell.com!ucsd!dog.ee.lbl.gov!hellgate.utah.edu!csn!stan!marvin!toml From: toml@marvin.Solbourne.COM (Tom LaStrange) Newsgroups: comp.windows.x.motif Subject: Re: Changing the pointer in ALL windows Message-ID: Date: 10 May 91 17:29:57 GMT References: <1991Apr28.014058.16034@engin.umich.edu> <13270011@hpsciz.sc.hp.com> Sender: toml@solbourne.com (Tom LaStrange) Organization: Solbourne Computer, Inc. Lines: 21 In-Reply-To: masa@hpsciz.sc.hp.com's message of 3 May 91 15:59:09 GMT |> I am writing a motif application which has many top-level windows. |> I would like to have the pointer change to a watch in all those windows |> to notify the user to wait. Unfotunately, it looks to me like you have |> to do a XDefineCursor using the window ID for EACH of the popup windows |> to get that to happen. Is there anyway around this? I tried using the |> toplevel widget returned from XtInitialize, but that only changes the |> pointer for that window. |> |> As far as I know, that's correct. So I ended up with writing a little |> extra code which maintains a list of windows and when asked, change |> the cursor of all those windows to either a watch or an arrow. It's much much easier than that. You could simply create a large InputOnly window as a child of your top-level window, set the cursor to whatever you want and XMapRaised the thing. Simply unmap it to get rid of your cursor. I'm not an Xt user so I can't tell you if there are any problems with this approach. -- (I kid you not)Tom LaStrange toml@Solbourne.COM