[comp.windows.x.motif] Painful?? -> Re: Scrolled Window Widget

rob@knopfler.leis.bellcore.com (Rob Herrera) (12/06/90)

Try XtMoveWidget to the Work area inside the scrolled
window widget. (Along with XtScrollBarSetValues). You
do have to know some things about the scrollbars (Max and Min)

Other options (use of event handlers, use of
Xm_APPLICATION_DEFINED policy, writing a BETTER scrollbar
widget), could be adventurous, although impractical for
someone with time restrictions.

WORD OF CAUTION: You should know how large your work window
is, and be careful with resizing, to prevent messages such
as:

X Toolkit Warning:
    Name: hScrollBar
    Class: XmScrollBar
    The specified scrollbar value is greater than the maximum
    scrollbar value minus the scrollbar slider size.

This is by all means kludgy (I think), but I've used it
several times successfully, when dealing with all the scrolling
myself is too much of a pain. (and when it is not...)

Hope this helps...

Chao
Rob Herrera

---------
Action, Action... Give me action not words - Joe Elliot