if (OS.IsControlVisible(topHandle) != visible) { OS.SetControlVisibility(topHandle, visible, true); sendEvent (visible ? SWT.Show : SWT.Hide); if (visible) redraw(); }
if (visible != fVisible) { fVisible= visible;  if (fDrawCount == 0) { int topHandle = topHandle (); if (OS.IsControlVisible(topHandle) != visible) { if (visible) { OS.SetControlVisibility(topHandle, true, false); sendEvent (SWT.Show); redraw(); } else { OS.SetControlVisibility(topHandle, false, true); sendEvent (SWT.Hide); } } } }
public void setVisible (boolean visible) {	checkWidget();	int topHandle = topHandle ();    /* AW	int [] argList = {OS.XmNmappedWhenManaged, 0};	OS.XtGetValues (topHandle, argList, argList.length / 2);	if ((argList [1] != 0) == visible) return;	OS.XtSetMappedWhenManaged (topHandle, visible);    */	if (OS.IsControlVisible(topHandle) != visible) {		OS.SetControlVisibility(topHandle, visible, true);		sendEvent (visible ? SWT.Show : SWT.Hide);		if (visible)			redraw();	}}