Skip to main content


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 08:30 Go to next message
Daniele Gariboldi is currently offline Daniele GariboldiFriend
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 17:39 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
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 13:02 Go to previous message
Daniele Gariboldi is currently offline Daniele GariboldiFriend
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: Fri Apr 26 02:17:21 GMT 2024

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

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

Back to the top