Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Redraw issue if i hover a window over a transparent shell.
Redraw issue if i hover a window over a transparent shell. [message #646315] Thu, 23 December 2010 05:12
Eclipse UserFriend
I am using following code to make a composite, on a shell, transparent. But whenever i hover any other window over this transparent composite the window leaves its marks on my composite.
Please help me, is there's any problem in my code. If you can suggest any alternate solution to make a composite transparent it is more than welcomed Smile

int handle = transparentRenderer.handle;

int oldExStyle = OS.GetWindowLong(handle, OS.GWL_EXSTYLE);
int newExStyle = 0;

if (isTransparentEnabled)
{
newExStyle = oldExStyle | OS.WS_EX_TRANSPARENT;
}
else
{
newExStyle = oldExStyle & (0xFFFFFFFF - OS.WS_EX_TRANSPARENT);
}

OS.SetWindowLong(handle, OS.GWL_EXSTYLE, newExStyle);

final int SWP_FRAMECHANGED = 0x20;
OS.SetWindowPos(handle, 0, 0, 0, 0, 0, OS.SWP_NOZORDER | OS.SWP_NOMOVE | OS.SWP_NOSIZE | SWP_FRAMECHANGED);


[Updated on: Thu, 23 December 2010 05:17] by Moderator

Previous Topic:[Browser] How to know when setURL has finished
Next Topic:New Text style (including icons)
Goto Forum:
  


Current Time: Sun Jul 06 22:49:17 EDT 2025

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

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

Back to the top