Hi
I want to create a menu on the click of button and it should be scrollable. I can make the menu visible true on button click. But how to make it scrollable.
ScrolledComposite setcontent method take object of type control.
Please see the code snippet below.
Any pointers..
menu_1 = new Menu(btnNewButton_1);
ScrolledComposite c1 = new ScrolledComposite(menu_1.getShell(), SWT.BORDER| SWT.H_SCROLL | SWT.V_SCROLL);
//c1.setContent(menu_1.)
//c1.setContent(menu_1);
mntmNewItem = new MenuItem(menu_1, SWT.None);
mntmNewItem.setText("New");
mntmNewItem_1 = new MenuItem(menu_1, SWT.NONE);
mntmNewItem_1.setText("Reset");
mntmNewItem_2 = new MenuItem(menu_1, SWT.NONE);
mntmNewItem_2.setText("Remove");
mntmNewItem_2 = new MenuItem(menu_1, SWT.NONE);
mntmNewItem_2.setText("Remove All");
mntmNewItem_2 = new MenuItem(menu_1, SWT.NONE);
mntmNewItem_2.setText("Clone");
mntmNewItem_2 = new MenuItem(menu_1, SWT.NONE);
mntmNewItem_2.setText("Move");