Path: utzoo!attcan!uunet!wuarchive!cs.utexas.edu!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: (none) Message-ID: <8910262135.AA20890@expo.lcs.mit.edu> Date: 26 Oct 89 21:35:51 GMT References: <8910102045.AA00578@diamond.STC.LOCKHEED.COM> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 30 [ Question on Athena Viewport widget ] > The documentation for this say "The Viewport widget consists of a frame > window, one or two Scrollbars, and an an inner window....The inner window is > the full size of the data that is to be displayed and is clipped by the frame > window. > I would like to be able to use the inner window as a large drawing > space and use the scroll bars to scroll through it. You will need to create a child widget for the Viewport, if you just want to use X drawing calls you may be able to use the core widget class (Class = widgetClass). You can also roll your own widget to do the drawing. > I would also like it top be possible to have the two scrollbars look different, > different colors and different shades of gray for the Thumb Pixmap. I would > like to be able to do this programatically through the use of XtSetArg... So > given a Viewport Widget how do you do this? The names of the two scrollbar are "horizontal" and "vertical" you can use XtNametoWidget to get the widget id of the widget, and then use XtSetValues to change it color or pixmap. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213