Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How can I restrict the automatic scrolling with given height and width?
How can I restrict the automatic scrolling with given height and width? [message #158040] Mon, 15 November 2004 07:45 Go to next message
Eclipse UserFriend
Originally posted by: justinaruja.isletsystems.com

Hello All,

I have implemented automatic scrolling using
ViewportAutoexposeHelper class. It is working fine, but I don't want to
scroll beyond some point.

1) How can I implement it.

Also during automatic scrolling, the flowLayout with isHorizontal false
not working properly

Please advice

Thanks in advance

Justin
Re: How can I restrict the automatic scrolling with given height and width? [message #158268 is a reply to message #158040] Wed, 17 November 2004 03:52 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
1) Override ViewportAutoExposeHelper's step() method, cache the total
scrolled distance, and don't do anything once you've scrolled past a certain
distance.

2) What are the symptoms of "not working properly"? Scrolling
(auto-scrolling no less) doesn't affect layout.

"Justin D'aruja" <justinaruja@isletsystems.com> wrote in message
news:cn9mr5$v50$1@eclipse.org...
> Hello All,
>
> I have implemented automatic scrolling using
> ViewportAutoexposeHelper class. It is working fine, but I don't want to
> scroll beyond some point.
>
> 1) How can I implement it.
>
> Also during automatic scrolling, the flowLayout with isHorizontal false
> not working properly
>
> Please advice
>
> Thanks in advance
>
> Justin
Re: How can I restrict the automatic scrolling with given height and width? [message #158426 is a reply to message #158268] Thu, 18 November 2004 07:31 Go to previous message
Eclipse UserFriend
Originally posted by: justinaruja.isletsystems.com

Hello Pratik Shah

<<2) What are the symptoms of "not working properly"? Scrolling
<<(auto-scrolling no less) doesn't affect layout.


During auto-scrolling FlowLayout behaviour changes from vetical to
horizontal.


Thanks,

Justin
Previous Topic:[ANN] Render WYSIWYG documents with Draw2D
Next Topic:Lines disappearing on grid
Goto Forum:
  


Current Time: Fri Apr 26 19:34:31 GMT 2024

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

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

Back to the top