Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU (Ralph R. Swick) Newsgroups: comp.windows.x Subject: Re: Grabbing the AsciiWidget scrollbar. HELP. Message-ID: <9007201553.AA04801@lyre.MIT.EDU> Date: 20 Jul 90 15:53:05 GMT References: Sender: daemon@athena.mit.edu (Mr Background) Organization: DEC/MIT Project Athena Lines: 17 v_bar = XtNameToWidget(widget, "vScrollbar"); This looks good on paper to me, but when I check to see if v_bar has a value, it turns out to be NULL. It does look good on paper, doesn't it. :-) Unfortunately for you, the Text widget does a very effective job of hiding its internals. Since it's not a subclass of Composite, XtNameToWidget won't return any of its component parts. Your only present option is to open the box using the big crowbar called TextP.h. A sanctioned way to use this particular crowbar is to subclass Text and either export the vbar widget field as a resource (less preferred), or add a XtNthumbProc callback list resource which is added to the scrollbar's list internally.