Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!ingr!b17b!stan From: stan@b17b.INGR.COM (Stan Hardy) Newsgroups: comp.windows.x.motif Subject: Re: XmScrolledWindow Message-ID: <452@b17b.INGR.COM> Date: 19 Aug 90 17:02:30 GMT References: <9030@uhccux.uhcc.Hawaii.Edu> Lines: 37 In article <9030@uhccux.uhcc.Hawaii.Edu>, john@quonset.cfht.hawaii.edu (John Kerr) writes: # I have a scrolled window that is the parent of a draw area widget. I # have chosen to make the scrollingPolicy AUTOMATIC and let my drawing # have that smooth scrolling effect. The problem I am having currently, # is that I would like to be notified of a scroll event, as mentioned in # the reference manual, but I can't seem to retrieve the scrollbar # widgets' ID. I tried to get the ID as follows: # # XtSetArg (myArgs[0], XmNhorizontalScrollBar, &wid); # XtGetValues (XtParent(graphAreaWid), myArgs, 1); # # When executed, the widget ID (wid) comes back 0. Any ideas # or suggestions? # Use XtParent(XtParent(graphAreaWid)). The parent of your drawing area is actually the clip window of the scrolled window. The clip window's parent is the scrolled window, which contains the XmNhorizontalScrollBar resource. # Thanks, # # jk # # # # ---------------------------------------------------------------------------- # John Kerr Canada-France-Hawaii Telescope Corp. # INTERNET: john@cfht.hawaii.edu # BITNET: john@uhcfht # ---------------------------------------------------------------------------- _____________________________________________________________________ / \ / / Stan Hardy \ Disclaimer: / / Intergraph Corporation \ This is only an exhibition, / / Phone : (205) 730-1346 \ not a competion. Please, / / Mail : ..!uunet!ingr!b17c!c120g!stan \ no wagering. / /___________________________________________\_________________________/