CTabFolder.setTopRight

Set the control that appears in the top right corner of the tab folder. Typically this is a close button or a composite with a Menu and close button. The topRight control is optional. Setting the top right control to null will remove it from the tab folder. <p> The alignment parameter sets the layout of the control in the tab area. <code>SWT.RIGHT</code> will cause the control to be positioned on the far right of the folder and it will have its default size. <code>SWT.FILL</code> will size the control to fill all the available space to the right of the last tab. If there is no available space, the control will not be visible. </p>

@param control the control to be displayed in the top right corner or null @param alignment <code>SWT.RIGHT</code> or <code>SWT.FILL</code>

@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> <li>ERROR_INVALID_ARGUMENT - if the control is not a child of this CTabFolder</li> </ul>

@since 3.0

  1. void setTopRight(Control control)
  2. void setTopRight(Control control, int alignment)
    class CTabFolder
    void
    setTopRight

Meta