[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Images on forms
|
Hi,
Place the canvas onto an additional ScrolledComposite.
Greetings from Timisoara (or Temeschburg/Temeswar),
Boby
"Daniel Krügler" <dsp@xxxxxxx> wrote in message
news:d40but$dpl$1@xxxxxxxxxxxxxxxxxxx
> Hello Robert Bacs,
>
> First, thank you for your answer!
>
> Robert Bacs schrieb:
> > Hi,
> >
> > To get rid of the clipping try to resize your canvas to your image width
and
> > height. If you want to limit your canvas size and still able to display
> > larger image try to use ScrolledComposite.
>
> Just to ensure that I don't misunderstand you: Do you mean
>
> (a) Replace the Canvas by a ScrolledComposite (and thus directly put
> draw the image on the composite) or
> (b) Place the Canvas onto an additional ScrolledComposite?
>
> > Note: you will see a flickering in case of larger image, to get rid of
this
> > flickering try to use SWT.NO_BACKGROUND style when creating the
> > canvas/scrolled composite.
>
> Thanks, that is a nice idea!
>
> Greetings from Bremen,
>
> Daniel Krügler
>