[5791] in java-interest

home help back first fref pref prev next nref lref last post

Re: HorScrollBar Warning

daemon@ATHENA.MIT.EDU (Greg Ewing)
Mon Feb 26 20:02:35 1996

Date: Tue, 27 Feb 1996 09:31:56 +1100
From: grege@optimation.com.au (Greg Ewing)
To: java-interest@java.sun.com
Cc: sigristg@vptt.ch


> From NewsGroup_comp-lang-java Fri Feb 23 08:18 EST 1996
> From: NewsGroup_comp-lang-java
> >From: sigristg@vptt.ch (Sigrist G fe51)
> Subject: HorScrollBar Warning
> Date: 22 Feb 1996 10:01:00 GMT
> Nntp-Posting-Host: gdv019.vptt.ch
> X-Newsreader: TIN [version 1.2 PL2]
> 
> I get this warning all the time :             
> Warning: 
>     Name: HorScrollBar
>     Class: XmScrollBar
>     The specified scrollbar value is greater than the maximum
>     scrollbar value minus the scrollbar slider size.
> 
> I would like to know where it comes from and why ?
> 
> My TextAreas do not seem to exceed any special length...
> 
> Thanks,
> Gab
> 
> --
> ************************************************************
>    Gabriel Sigrist              e-mail : sigristg@vptt.ch
>    Swiss TELECOM PTT            phone  : +41 31 338 40 57
>    Ostermundigen Str 93         fax    : +41 31 338 39 62
>    3000 Bern 29, Switzerland
>    http://www.vptt.ch/
> ************************************************************
> 

Gabriel,

This is an X message. I used to get the same warning when using 
scrollbars in Eiffel Vision, and it had me confused for a while.

I solved it by trial and error - the various scrollbar variables 
(value, minimum, maximum, slider-size etc) must be initialised 
in a certain order otherwise the warning will appear.

Using Eiffel, the order had to be i. value, ii. slider_size, 
iii. minimum/maximum, v. granularity.

Looking at the Java api I see that there is only one routine 
`setValues()' which sets i. value ii. visible iii. maximum iv. 
minimum. I assume `visible' is a composite of the Eiffel terms 
`sliderSize' and `granularity'. This ordering looks reasonable so 
I suggest you check that you have done a `setValues()' to initialise 
everything.

Now, if you haven't implemented your own Scrollbar but are simply 
using a TextArea, I'm not sure what could be causing the problem.

GREG
grege@optimation.com.au

-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post