Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » ScrollBar class constructor
ScrollBar class constructor [message #58427] Mon, 02 June 2003 06:35 Go to next message
Eclipse UserFriend
Originally posted by: shilpagu.noida.hcltech.com

is there no constr available for ScrollBar class?
how do i do i use the functions defined by this class.
this class is not even extendible?
Re: ScrollBar class constructor [message #58877 is a reply to message #58427] Mon, 02 June 2003 12:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: adam_kiezun.ch.ibm.spam.protection.com

"sg" <shilpagu@noida.hcltech.com> wrote in message news:bber7g$v2b$1@rogue.oti.com...
> is there no constr available for ScrollBar class?
> how do i do i use the functions defined by this class.

what is it precisely that you mean?
you get an object of that class and call the methods on that object

you can get an intance by calling Scollable.getVericalBar for example
(you don't create those objects but that does mean you cannot aquire one from someone else)
a.
Re: ScrollBar class constructor [message #59052 is a reply to message #58877] Mon, 02 June 2003 13:48 Go to previous message
Eclipse UserFriend
Originally posted by: Andre_Weinand.oti.com

On 2.6.2003 14:28 Uhr, in article bbffsc$g0j$1@rogue.oti.com, "Adam Kiezun"
<adam_kiezun@ch.ibm.spam.protection.com> wrote:

> "sg" <shilpagu@noida.hcltech.com> wrote in message
> news:bber7g$v2b$1@rogue.oti.com...
>> is there no constr available for ScrollBar class?
>> how do i do i use the functions defined by this class.
>
> what is it precisely that you mean?
> you get an object of that class and call the methods on that object
>
> you can get an intance by calling Scollable.getVericalBar for example
> (you don't create those objects but that does mean you cannot aquire one from
> someone else)
> a.
>
>

Please read ScrollBar's Java Doc. It gives an explanation why ScrollBars
cannot be instantiated and that you'll have to use a Slider instead:

"Note: Scroll bars are not Controls. On some platforms, scroll bars that
appear as part of some standard controls such as a text or list have no
operating system resources and are not children of the control. For this
reason, scroll bars are treated specially. To create a control that looks
like a scroll bar but has operating system resources, use
<code>Slider</code>.

--andre
Previous Topic:adding scroll bars to decorator?
Next Topic:Resource Change events
Goto Forum:
  


Current Time: Sat Sep 28 20:18:24 GMT 2024

Powered by FUDForum. Page generated in 0.04602 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top