[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: popup with checkboxes

Simon,
You can set the style when creating the menuitem:
MenuItem menuItem = new MenuItem (parentMenu, SWT.CHECK);
When you select the menu item, then the menu is checked.

Regards,
Frank.

"Simon Grey" <sgrey@xxxxxxxxx> wrote in message 
news:14ed2229fd2615d81ffd216d3d0bfa3d$1@xxxxxxxxxxxxxxxxxx
> Hi,
>
> Is there a way to create a popup menu with checkboxes? It seems a checkbox 
> created out of Button (SWT.CHECK) cannot be added to a popup Menu object?
>
> Any suggestion appreciated.
>
> Thanks in advance.
>
>
>