.setLayoutData(new GridData(GridData.FILL, GridData.FILL, false, false));
switch (buttonType)
{
case ThemeConstants.BUTTON_MAX:
buttonCanvas.addListener(SWT.MouseUp, new Listener()
{
public void handleEvent(Event event)
{
if (event.button != 1) return;
Rectangle rect = new Rectangle(0, 0, buttonCanvas.getBounds().width,