Kontorotsui wrote:
> 
> Hello,
>         I wrote an application that uses scrollbars (using the ScrollPane
> class), but often when the image inside the scrollpane changes in size, I get
> this message:
> 
> Warning:
>     Name: HorScrollBar
>     Class: XmScrollBar
>     The specified scrollbar value is greater than the maximum
>     scrollbar value minus the scrollbar slider size.
> 
>                       .
>                       .
>                       .
> 
> Now I wonder: it's me or everybody else has the same problem?

The message is from Motif, and is probably a semi-corner case that the
AWT doesn't handle very well. Motif is pretty particular about
consistency between scrollbar parameters (min, max, value, etc.) and my
guess is that some pretty common situations are causing AWT not to do a
good job of setting up Motif scrollbars.

   |-----------XXXXXXXXXX-----------|
  min          slidersize          max

  min<value<max

I see the message frequently; many do. Maybe your app (and thousands of
others) are setting some inconsistent scrollbar parameters, but since
the message often appears with automatic scrollbars that's very
unlikely. Based on past Motif experience, I'd expect this problem to be
particularly likely if you've got some scrollbars set up to scroll an
object smaller than the viewport.

Solutions? There's always Swing.

Nathan


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to