Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:12
Bhoomika  is currently offline Bhoomika Friend
Messages: 1
Registered: December 2010
Junior Member
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 10:17]

Report message to a moderator

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


Current Time: Fri Apr 26 22:25:14 GMT 2024

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

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

Back to the top