Button.setGrayed

Sets the grayed state of the receiver. This state change only applies if the control was created with the SWT.CHECK style.

@param grayed the new grayed state

@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

class Button
void
setGrayed
(
bool grayed
)

Meta