Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!agate!ucbvax!PRESTO.IG.COM!dow From: dow@PRESTO.IG.COM (Christopher Dow) Newsgroups: comp.windows.x.motif Subject: Cursors and buttons...... Message-ID: Date: 25 Jan 91 19:17:01 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 39 I have a window which has an area in which text is edited(not a widget because of the nature of the editing), two scrollbars which aren't window decorations, a button, and an area with some labels: +--------------------------------------------------------------------------+ | Menu Menu Menu .... | +--------------------------------------------------------------------------+ | Informational Stuff | +--------------------------------------------------------------------------+ | Label | | | | Label | Editing area | | | Label | | | | Label | | | | Label | ScrollBars---------->| | | Label | | | | | Label | V | | +-------------+------------------------------------------------------------+ | Button | | | +-------------+------------------------------------------------------------+ When the mouse is over the editing area, I set the cursor to be an i-beam. When it's not I set the cursor to be an arrow. The only problem is, that I don't get informed when the mouse moves over the scroll bars or the button, so if it moves from the editing area to the scroll bars, it stays an i-beam, which looks kind of silly. Is there any way to set the cursor for the button & scroll bar widgets? From reading the documentation, it doesn't look like XmNarmCallback, XmNactivate Callback, or XmNdisarmCallback will do this for me. Also, I can't see where there is a resource for a PushButton or ScrollBar widget that sets the cursor. So, any suggestions (other than the obvious "don't use an i-beam ;-)? Any help would be greatly appreciated. Chris Dow IntelliGenetics Software Engineer 700 East El Camino Real icbmnet: 37 22' 39" N, 122 3' 32" W Mountain View, Ca. 94040 dow@presto.ig.com (415) 962-7320