Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Draw over Activex
Draw over Activex [message #437644] Wed, 09 June 2004 04:30 Go to next message
Daniele Gariboldi is currently offline Daniele Gariboldi
Messages: 2
Registered: July 2009
Junior Member
I need to draw an image inside an activex (not mine), embedded in a SWT
OleFrame.
Is it possible to use its OleFrame graphic context ?
I tried to write something in a short time: no error but nothing on the
screen appeared.
Is it possible at all?
Has anybody tried it before ?
I have read of somebody who did it using GDI, so it should be possible.
And if I do it, is then possible to use GEF ?

Thanks.
Re: Draw over Activex [message #437728 is a reply to message #437644] Wed, 09 June 2004 13:39 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika Irvine
Messages: 1272
Registered: July 2009
Senior Member
The GC would have to be created on the handle of the widget you are trying
to draw on. The active X control can be made up of one or widgets - none of
which are visible through SWT. OleFrame and OleControlSite are only
wrappers around the activeX Control. Consider them to be the same as a
Composite in which you have created child widgets. Drawing on the parent
will not draw over the children.

"Daniele Gariboldi" <garidan@tele2.it> wrote in message
news:ca6hrj$j6n$1@eclipse.org...
> I need to draw an image inside an activex (not mine), embedded in a SWT
> OleFrame.
> Is it possible to use its OleFrame graphic context ?
> I tried to write something in a short time: no error but nothing on the
> screen appeared.
> Is it possible at all?
> Has anybody tried it before ?
> I have read of somebody who did it using GDI, so it should be possible.
> And if I do it, is then possible to use GEF ?
>
> Thanks.
>
>
Re: Draw over Activex [message #437965 is a reply to message #437728] Mon, 14 June 2004 09:02 Go to previous message
Daniele Gariboldi is currently offline Daniele Gariboldi
Messages: 2
Registered: July 2009
Junior Member
OK,
thank you for your clear answer.
I'll try to explore this activex structure , otherwise I'll choose another
way.


Veronika Irvine wrote:

> The GC would have to be created on the handle of the widget you are trying
> to draw on. The active X control can be made up of one or widgets - none of
> which are visible through SWT. OleFrame and OleControlSite are only
> wrappers around the activeX Control. Consider them to be the same as a
> Composite in which you have created child widgets. Drawing on the parent
> will not draw over the children.

> "Daniele Gariboldi" <garidan@tele2.it> wrote in message
> news:ca6hrj$j6n$1@eclipse.org...
> > I need to draw an image inside an activex (not mine), embedded in a SWT
> > OleFrame.
> > Is it possible to use its OleFrame graphic context ?
> > I tried to write something in a short time: no error but nothing on the
> > screen appeared.
> > Is it possible at all?
> > Has anybody tried it before ?
> > I have read of somebody who did it using GDI, so it should be possible.
> > And if I do it, is then possible to use GEF ?
> >
> > Thanks.
> >
> >
Previous Topic:Help: Table dnd with cell colors
Next Topic:Multiline Text in a List
Goto Forum:
  


Current Time: Tue Jul 29 00:38:47 EDT 2014

Powered by FUDForum. Page generated in 0.04662 seconds