|
|
Re: realizable row header width [message #1010836 is a reply to message #1010768] |
Mon, 18 February 2013 10:10 |
Martin Jacob Messages: 191 Registered: July 2009 |
Senior Member |
|
|
Hi Dirk,
yah sorry for the typo. I mean resizeable ...
Your solution works great! Thanks. I just changed the GridRegion to ROW_HEADER and add the
configuration to the table.
natTable.addConfiguration(new AbstractUiBindingConfiguration() {
@Override
public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
// Mouse move - Show resize cursor
uiBindingRegistry.registerFirstMouseMoveBinding(new ColumnResizeEventMatcher(SWT.NONE,
GridRegion.ROW_HEADER, 0), new ColumnResizeCursorAction());
uiBindingRegistry.registerMouseMoveBinding(new MouseEventMatcher(), new ClearCursorAction());
// Column resize
uiBindingRegistry.registerFirstMouseDragMode(new ColumnResizeEventMatcher(SWT.NONE,
GridRegion.ROW_HEADER, 1), new ColumnResizeDragMode());
uiBindingRegistry.registerDoubleClickBinding(new ColumnResizeEventMatcher(SWT.NONE,
GridRegion.ROW_HEADER, 1), new AutoResizeColumnAction());
uiBindingRegistry.registerSingleClickBinding(new ColumnResizeEventMatcher(SWT.NONE,
GridRegion.ROW_HEADER, 1), new NoOpMouseAction());
}
});
Martin
schrieb Dirk Fauth, Am 18.02.2013 08:57:
> Hi,
>
> what do you mean with realizable? Or do you mean resizable?
>
> If you want to make your RowHeader resizable in terms of cell width you need to register the ui
> bindings for that. Have a look at the DefaultColumnResizeBindings to see what bindings that are.
>
> Hope that helps, Dirk
|
|
|
Powered by
FUDForum. Page generated in 0.03251 seconds