Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » playing a video in FigureCanvas.i can listen the sound but can't view video
playing a video in FigureCanvas.i can listen the sound but can't view video [message #216411] Thu, 18 May 2006 06:58 Go to next message
Eclipse UserFriend
Originally posted by: kanchan.thukral.barco.com

i have made one class which takes the composite in the constructor and this class is playing video through swt ole.

when i pass org.eclipse.swt.widgets.Canvas in it's constructor it is working and i can see the video.

but when i pass org.eclipse.draw2d.FigureCanvas in it's constructor then i can only listen that video but can't see that.

why this is??
as org.eclipse.draw2d.FigureCanvas
extends org.eclipse.swt.widgets.Canvas and this canvas class extends org.eclipse.swt.widgets.Composite
please tell me...
Re: playing a video in FigureCanvas.i can listen the sound but can't view video [message #216546 is a reply to message #216411] Fri, 19 May 2006 13:44 Go to previous messageGo to next message
Steven R. Shaw is currently offline Steven R. ShawFriend
Messages: 128
Registered: July 2009
Senior Member
Just a stab in the dark, but FigureCanvas forces the SWT_DOUBLE_BUFFERED
style on the canvas. If you're not utilizing FigureCanvas for it's ability
to host figures, why do you need it?

-Steve

"Kgef" <kanchan.thukral@barco.com> wrote in message
news:4858442.1147935528447.JavaMail.root@cp1.javalobby.org...
> i have made one class which takes the composite in the constructor and
this class is playing video through swt ole.
>
> when i pass org.eclipse.swt.widgets.Canvas in it's constructor it is
working and i can see the video.
>
> but when i pass org.eclipse.draw2d.FigureCanvas in it's constructor then i
can only listen that video but can't see that.
>
> why this is??
> as org.eclipse.draw2d.FigureCanvas
> extends org.eclipse.swt.widgets.Canvas and this canvas class extends
org.eclipse.swt.widgets.Composite
> please tell me...
Re: playing a video in FigureCanvas.i can listen the sound but can't view video [message #219657 is a reply to message #216411] Thu, 20 July 2006 06:38 Go to previous message
Eclipse UserFriend
Originally posted by: dstamkokeng.gmail.com

Hi,

What do you mean by a FigureCanvas? I am currently trying to add drawings
without any underlying model behind it. But I cannot find any canvas to do
my drawing on. May I know how do you add a video to the Figure Canvas? Or
how do you "extract" the canvas outfrom the figure object.

I am new to GEF. My understanding is 1) that ONLY figures can be use to do
drawing in GEF. 2) the figures MUST have an underlying model behind it.
I hope I am wrong abt what I understand. Do you mind explaining more to me
or show me some code snippets if possible?

Thanks alot!
Previous Topic:Regarding Changing of View with respect to Model
Next Topic:How to get the offset after scrollbar scrolling?
Goto Forum:
  


Current Time: Thu Apr 25 13:25:52 GMT 2024

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

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

Back to the top