Sets the shape of the control to the region specified
by the argument. When the argument is null, the
default shape of the control is restored.
@param region the region that defines the shape of the control (or null)
@exception IllegalArgumentException <ul>
<li>ERROR_INVALID_ARGUMENT - if the region has been disposed</li>
</ul>
@exception SWTException <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
</ul>
Sets the shape of the control to the region specified by the argument. When the argument is null, the default shape of the control is restored.
@param region the region that defines the shape of the control (or null)
@exception IllegalArgumentException <ul> <li>ERROR_INVALID_ARGUMENT - if the region has been disposed</li> </ul> @exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>
@since 3.4