|Preventing resize of a popup with a resize border [message #654856]
||Thu, 17 February 2011 08:07
| Giddi Ohm
Registered: September 2010
Is there any way to prevent a popup with the style INFOPOPUPRESIZE_SHELLSTYLE from being resized?|
It may not sound very user friendly to show a resize border without allowing the user to resize the popup, but I would like to create a popup similar to the Date/Time popup in Windows 7 (which has a 7 pixel glass border around it). Setting the style to INFOPOPUPRESIZE_SHELLSTYLE gives me the style I want, but also enables resizing.
I've tried to prevent resizing using a ControlListener but this results in a slight flicker as the shell is apparently resized by the OS before it is restored by the listener.
Is there any way of achieving what I want in SWT?
Is there for instance a way to remove the default resize handler from the shell window after the resize style has been set?
Powered by FUDForum
. Page generated in 0.04802 seconds