Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Opaque Canvas
Opaque Canvas [message #457853] Wed, 06 July 2005 07:10 Go to next message
Eclipse UserFriend
Originally posted by: nightblue99.yahoo.com

Hi;

I want to create a opaque canvas that show all the widget unders it. In
other words; lets say we create shell and add some control on it. When we
add opaque canvas to the shell encapsulating all of shell area; all the
controls still visible under the canvas

Thanks;
Re: Opaque Canvas [message #457878 is a reply to message #457853] Wed, 06 July 2005 09:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nightblue99.yahoo.com

Not opaque canvas , I mean non-opaque,transparent canvas....
Re: Opaque Canvas [message #457903 is a reply to message #457878] Wed, 06 July 2005 14:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"nightblue" <nightblue99@yahoo.com> wrote in message
news:751301671cd5610b37a3602fd876d1bb$1@www.eclipse.org...
> Not opaque canvas , I mean non-opaque,transparent canvas....
>
I don't think this is supported by SWT. You might want to try Swing instead.
---
Sunil
GlassPane? (was Re: Opaque Canvas) [message #457941 is a reply to message #457903] Thu, 07 July 2005 21:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: robb.acm.org

I was wondering the same thing - is there an SWT equivalent of the Swing
glass pane? Something that can be overlaid a bunch of controls that can
be drawn on and will maybe capture mouse events?

Thanks,
Robb

Sunil Kamath wrote:
> "nightblue" <nightblue99@yahoo.com> wrote in message
> news:751301671cd5610b37a3602fd876d1bb$1@www.eclipse.org...
>
>>Not opaque canvas , I mean non-opaque,transparent canvas....
>>
>
> I don't think this is supported by SWT. You might want to try Swing instead.
> ---
> Sunil
>
>
Re: GlassPane? (was Re: Opaque Canvas) [message #457986 is a reply to message #457941] Fri, 08 July 2005 17:25 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
When a control is disabled, mouse events go to the parent. You can capture
events for a control by disabling the parent and then looking for events in
the parent's parent.

"Robb Shecter" <robb@acm.org> wrote in message
news:dak8fo$ov5$1@news.eclipse.org...
> I was wondering the same thing - is there an SWT equivalent of the Swing
> glass pane? Something that can be overlaid a bunch of controls that can
> be drawn on and will maybe capture mouse events?
>
> Thanks,
> Robb
>
> Sunil Kamath wrote:
> > "nightblue" <nightblue99@yahoo.com> wrote in message
> > news:751301671cd5610b37a3602fd876d1bb$1@www.eclipse.org...
> >
> >>Not opaque canvas , I mean non-opaque,transparent canvas....
> >>
> >
> > I don't think this is supported by SWT. You might want to try Swing
instead.
> > ---
> > Sunil
> >
> >
Re: GlassPane? (was Re: Opaque Canvas) [message #458081 is a reply to message #457986] Sat, 09 July 2005 03:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.objfac.com

But disabling a control has visual side effects.

Bob

Steve Northover wrote:
> When a control is disabled, mouse events go to the parent. You can capture
> events for a control by disabling the parent and then looking for events in
> the parent's parent.
>
> "Robb Shecter" <robb@acm.org> wrote in message
> news:dak8fo$ov5$1@news.eclipse.org...
>
>>I was wondering the same thing - is there an SWT equivalent of the Swing
>>glass pane? Something that can be overlaid a bunch of controls that can
>>be drawn on and will maybe capture mouse events?
>>
>>Thanks,
>>Robb
>>
>>Sunil Kamath wrote:
>>
>>>"nightblue" <nightblue99@yahoo.com> wrote in message
>>>news:751301671cd5610b37a3602fd876d1bb$1@www.eclipse.org...
>>>
>>>
>>>>Not opaque canvas , I mean non-opaque,transparent canvas....
>>>>
>>>
>>>I don't think this is supported by SWT. You might want to try Swing
>
> instead.
>
>>>---
>>>Sunil
>>>
>>>
>
>
>
Re: GlassPane? (was Re: Opaque Canvas) [message #458089 is a reply to message #458081] Sat, 09 July 2005 17:50 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
Bob Foster:

Yes, but you can disable its _parent_, so control will look like
enabled but will not receive mouse events.

> But disabling a control has visual side effects.
>
> Bob
>
> Steve Northover wrote:
>
>> When a control is disabled, mouse events go to the parent. You can
>> capture
>> events for a control by disabling the parent and then looking for
>> events in
>> the parent's parent.
>>
>> "Robb Shecter" <robb@acm.org> wrote in message
>> news:dak8fo$ov5$1@news.eclipse.org...
>>
>>> I was wondering the same thing - is there an SWT equivalent of the Swing
>>> glass pane? Something that can be overlaid a bunch of controls that can
>>> be drawn on and will maybe capture mouse events?
>>>
>>> Thanks,
>>> Robb
>>>
>>> Sunil Kamath wrote:
>>>
>>>> "nightblue" <nightblue99@yahoo.com> wrote in message
>>>> news:751301671cd5610b37a3602fd876d1bb$1@www.eclipse.org...
>>>>
>>>>
>>>>> Not opaque canvas , I mean non-opaque,transparent canvas....
>>>>>
>>>>
>>>> I don't think this is supported by SWT. You might want to try Swing
>>
>>
>> instead.
>>
>>>> ---
>>>> Sunil
>>>>
>>>>
>>
>>
>>


Konstantin Scheglov,
Google, Inc.
Re: GlassPane? (was Re: Opaque Canvas) [message #458094 is a reply to message #458089] Sun, 10 July 2005 00:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.objfac.com

Thanks for taking the time to point out what I missed in Steve's reply!

Bob

Konstantin Scheglov wrote:
> Bob Foster:
>
> Yes, but you can disable its _parent_, so control will look like
> enabled but will not receive mouse events.
>
>> But disabling a control has visual side effects.
>>
>> Bob
>>
>> Steve Northover wrote:
>>
>>> When a control is disabled, mouse events go to the parent. You can
>>> capture
>>> events for a control by disabling the parent and then looking for
>>> events in
>>> the parent's parent.
>>>
>>> "Robb Shecter" <robb@acm.org> wrote in message
>>> news:dak8fo$ov5$1@news.eclipse.org...
>>>
>>>> I was wondering the same thing - is there an SWT equivalent of the
>>>> Swing
>>>> glass pane? Something that can be overlaid a bunch of controls that
>>>> can
>>>> be drawn on and will maybe capture mouse events?
>>>>
>>>> Thanks,
>>>> Robb
>>>>
>>>> Sunil Kamath wrote:
>>>>
>>>>> "nightblue" <nightblue99@yahoo.com> wrote in message
>>>>> news:751301671cd5610b37a3602fd876d1bb$1@www.eclipse.org...
>>>>>
>>>>>
>>>>>> Not opaque canvas , I mean non-opaque,transparent canvas....
>>>>>>
>>>>>
>>>>> I don't think this is supported by SWT. You might want to try Swing
>>>
>>>
>>>
>>> instead.
>>>
>>>>> ---
>>>>> Sunil
>>>>>
>>>>>
>>>
>>>
>>>
Re: GlassPane? (was Re: Opaque Canvas) [message #458259 is a reply to message #457941] Tue, 12 July 2005 13:52 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet46.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup

"Robb Shecter" <robb@acm.org> wrote in message
news:dak8fo$ov5$1@news.eclipse.org...
> I was wondering the same thing - is there an SWT equivalent of the Swing
> glass pane? Something that can be overlaid a bunch of controls that can
> be drawn on and will maybe capture mouse events?
>
> Thanks,
> Robb
>
> Sunil Kamath wrote:
> > "nightblue" <nightblue99@yahoo.com> wrote in message
> > news:751301671cd5610b37a3602fd876d1bb$1@www.eclipse.org...
> >
> >>Not opaque canvas , I mean non-opaque,transparent canvas....
> >>
> >
> > I don't think this is supported by SWT. You might want to try Swing
instead.
> > ---
> > Sunil
> >
> >
Re: GlassPane? (was Re: Opaque Canvas) [message #458406 is a reply to message #458259] Tue, 12 July 2005 23:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.objfac.com

Hmm. You're dragging the composite containing the button around. What I
expected to see is two buttons under one composite that when you click
and drag drags a button around within the composite. Would there be a
visible difference in these two cases. E.g., if you dragged one button
on top of another with the composite-per-button approach, might you see
rectangular background cutouts in the rounded corners of the top button?

Bob

Steve Northover wrote:
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet46.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup
>
> "Robb Shecter" <robb@acm.org> wrote in message
> news:dak8fo$ov5$1@news.eclipse.org...
>
>>I was wondering the same thing - is there an SWT equivalent of the Swing
>>glass pane? Something that can be overlaid a bunch of controls that can
>>be drawn on and will maybe capture mouse events?
>>
>>Thanks,
>>Robb
>>
>>Sunil Kamath wrote:
>>
>>>"nightblue" <nightblue99@yahoo.com> wrote in message
>>>news:751301671cd5610b37a3602fd876d1bb$1@www.eclipse.org...
>>>
>>>
>>>>Not opaque canvas , I mean non-opaque,transparent canvas....
>>>>
>>>
>>>I don't think this is supported by SWT. You might want to try Swing
>
> instead.
>
>>>---
>>>Sunil
>>>
>>>
>
>
>
Re: GlassPane? (was Re: Opaque Canvas) [message #458519 is a reply to message #458406] Thu, 14 July 2005 13:39 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Probably but don't you see those anyways? Try it.

"Bob Foster" <bob@objfac.com> wrote in message
news:db1k8q$not$1@news.eclipse.org...
> Hmm. You're dragging the composite containing the button around. What I
> expected to see is two buttons under one composite that when you click
> and drag drags a button around within the composite. Would there be a
> visible difference in these two cases. E.g., if you dragged one button
> on top of another with the composite-per-button approach, might you see
> rectangular background cutouts in the rounded corners of the top button?
>
> Bob
>
> Steve Northover wrote:
> >
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet46.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup
> >
> > "Robb Shecter" <robb@acm.org> wrote in message
> > news:dak8fo$ov5$1@news.eclipse.org...
> >
> >>I was wondering the same thing - is there an SWT equivalent of the Swing
> >>glass pane? Something that can be overlaid a bunch of controls that can
> >>be drawn on and will maybe capture mouse events?
> >>
> >>Thanks,
> >>Robb
> >>
> >>Sunil Kamath wrote:
> >>
> >>>"nightblue" <nightblue99@yahoo.com> wrote in message
> >>>news:751301671cd5610b37a3602fd876d1bb$1@www.eclipse.org...
> >>>
> >>>
> >>>>Not opaque canvas , I mean non-opaque,transparent canvas....
> >>>>
> >>>
> >>>I don't think this is supported by SWT. You might want to try Swing
> >
> > instead.
> >
> >>>---
> >>>Sunil
> >>>
> >>>
> >
> >
> >
Previous Topic:Does CCombo have a ComboViewer designed to work with it? (no text)
Next Topic:Vertical alignment in label; Preferred size of label
Goto Forum:
  


Current Time: Sat Oct 31 17:19:23 GMT 2020

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

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

Back to the top