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 05:12
Bhoomika  is currently offline Bhoomika
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 05: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: Thu Aug 21 06:17:45 EDT 2014

Powered by FUDForum. Page generated in 0.01467 seconds