Article View: usf.windows.x
Article #1Using Viewport Widget in Xt
From: Ken Hughes
Date: Wed, 24 Oct 1990 23:59
Date: Wed, 24 Oct 1990 23:59
22 lines
1783 bytes
1783 bytes
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_ ---------------------------------------------------------------------------
Technical Details
Message-ID:
<106@screamer.csee.usf.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!attcan!uunet!cs.utexas.edu!samsung!rex!uflorida!ziggy!screamer!packrat!hughesShow Full Headers
Complete Article Headers
Message-ID: <106@screamer.csee.usf.edu> Subject: Using Viewport Widget in Xt Date: Wed, 24 Oct 1990 23:59:30 +0000 From: hughes@packrat.csee.usf.edu (Ken Hughes) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!attcan!uunet!cs.utexas.edu!samsung!rex!uflorida!ziggy!screamer!packrat!hughes Newsgroups: comp.windows.x,usf.windows.x 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