Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » transparent shell
transparent shell [message #450070] Mon, 07 February 2005 16:11 Go to next message
Eclipse UserFriend
Originally posted by: bryanyu.dualforcesolutions.com

is it possible to have a transparent shell?

something like: http://freshmeat.net/projects/twc/
Re: transparent shell [message #450283 is a reply to message #450070] Wed, 09 February 2005 15:08 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
GTK and Motif can not support transparent shells, therefore it is not
supported in SWT. You can however have non-rectangular shells for any shape
(see Shell.setRegion()). You could, for example, have a non-rectangular
shell that only has every other pixel.

//define a region
Region region = new Region();
Rectangle pixel = new Rectangle(0, 0, 2, 2);
for (int y = 0; y < 200; y+=4) {
for (int x = 0; x < 200; x+=4) {
pixel.x = x;
pixel.y = y;
region.add(pixel);
}
}
shell.setRegion(region);

"Mark Bryan Yu" <bryanyu@dualforcesolutions.com> wrote in message
news:cu83et$bh4$1@www.eclipse.org...
> is it possible to have a transparent shell?
>
> something like: http://freshmeat.net/projects/twc/
Previous Topic:Keyboard accelerator notification
Next Topic:Moving focus to a Composite without activating the Shell?
Goto Forum:
  


Current Time: Thu Apr 25 22:32:11 GMT 2024

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

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

Back to the top