Path: utzoo!attcan!uunet!cs.utexas.edu!samsung!rex!uflorida!ziggy!screamer!packrat!hughes From: hughes@packrat.csee.usf.edu (Ken Hughes) Newsgroups: comp.windows.x,usf.windows.x Subject: Using Viewport Widget in Xt Message-ID: <106@screamer.csee.usf.edu> Date: 24 Oct 90 23:59:30 GMT Sender: news@screamer.csee.usf.edu Reply-To: hughes@packrat.csee.usf.edu (Ken Hughes) Organization: University of South Florida, College of Engineering Lines: 21 I'm trying to write an application which scrolls a pixmap. The X Toolkit reference says that I need to create a widget of class viewportWidgetClass and then create child widget of the viewport. The scrollbars are supposed to handle scrolling without any callback. First, when a window resize event is called, the widget is the viewport widget, not the pixmap widget. What am I supposed to resize with? If I ignore what's being passed back and use the bitmap widget, the display is updated correctly. Second, when I move the scrollbars the pixmap scrolls, but the parts being uncovered aren't there. I assume this is related to what's happening above. What am I doing wrong? --------------------------------------------------------------------------- Ken Hughes (hughes@sol.csee.usf.edu) | "Which button do I press to turn FT-Ph D student, PT-ex-sysadm | it off?" "Try the red one, Dept of Comp Sci and Eng | allright?" "Which red button?" University of South Florida | from _Heathers_ ---------------------------------------------------------------------------