Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Scrollable image
Scrollable image [message #451424] Tue, 01 March 2005 21:14 Go to next message
Alejandro Narancio is currently offline Alejandro NarancioFriend
Messages: 40
Registered: July 2009
Member
Hi for everyone!
Anybody know how can i make an image with scrolls?
I have this problem I need to show an image to the user and I put it
inside a Label component (label.setImage(...)) but if the Image it's too
large the label cut the original size of the image, anybody know a way to
put scoll bars when the size of the Image is large?

Thanks and regards,

Alejandro
Re: Scrollable image [message #451426 is a reply to message #451424] Tue, 01 March 2005 21:28 Go to previous messageGo to next message
Simone Gianni is currently offline Simone GianniFriend
Messages: 29
Registered: July 2009
Junior Member
Have a look at ScrolledComposite, put the label in it as described in
the ScroleldComposite javadocs and you'll have scrollbars.

Simone

Alejandro Narancio wrote:
> Hi for everyone!
> Anybody know how can i make an image with scrolls?
> I have this problem I need to show an image to the user and I put it
> inside a Label component (label.setImage(...)) but if the Image it's too
> large the label cut the original size of the image, anybody know a way
> to put scoll bars when the size of the Image is large?
>
> Thanks and regards,
>
> Alejandro
>
Re: Scrollable image [message #451428 is a reply to message #451424] Tue, 01 March 2005 21:53 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
See:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet48.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup

or

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet5.java?rev=HEAD&am p;content-type=text/vnd.viewcvs-markup


Note that ScrolledComposite has a limitation for very large images which the
first snippet does not.


"Alejandro Narancio" <ale.narancio@adinet.com.uy> wrote in message
news:d02lvi$l1o$1@www.eclipse.org...
> Hi for everyone!
> Anybody know how can i make an image with scrolls?
> I have this problem I need to show an image to the user and I put it
> inside a Label component (label.setImage(...)) but if the Image it's too
> large the label cut the original size of the image, anybody know a way to
> put scoll bars when the size of the Image is large?
>
> Thanks and regards,
>
> Alejandro
>
Previous Topic:Changing the size of a SWT textbox
Next Topic:Anyone got experience with "Essential Data" widget set at workbench.com?
Goto Forum:
  


Current Time: Thu Apr 25 11:19:47 GMT 2024

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

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

Back to the top