[comp.windows.x] Scrolling & Resizing

deitsch@phecda.crd.ge.com (Andy Deitsch) (09/27/90)

I am new to Xview and am having a problem resizing and scrolling.  I can
either scroll or resize but not both.  

In order to control the scrolling, I have interposed on the scroll events.
When the program starts, everything is fine.  I can zoom in and out, and
scroll.
As soon as I resize however, things begin to happen.

Tracing through the program I have determined that after leaving the
CANVAS_RESIZE_PROC, a scroll event occurs and my scroll event handler
gets called.  Between the time the CANVAS_RESIZE_PROC exits and the scroll
event handler executes its first line, the SCROLLBAR_OBJECT_LENGTH and
SCROLLBAR_VIEW_LENGTH get modified!  This is apparently what is messing things
up, however I'm not sure how to fix it.

Any suggestions will be helpful.

Thanx in advance...
Andy Deitsch