Closed IvanGarSer closed 7 months ago
Hi
Thank you for using Nebula :)
For your first question : you can align the text by calling the method setAligment()
on a column object, for example
column.setAlignment(SWT.RIGHT);
Unfortunately, an image is always aligned on the left. You can create a custom GridCellRenderer or create an issue to add a new feature.
For the border separator, this is a bug. I'm working on it. Good news : a new release of Nebula is planned for the end of this month.
Hi!
Thank you very much for your answer! We'll wait for the new nebula's version and try to align the image as you adviced us, since we need it align to the left.
Thanks again and have a great day! :)
@IvanGarSer I've fixed the bug for the border separator (cf. https://github.com/eclipse/nebula/issues/551)
Hello everyone!
We are using nebula v3.0.0 for building a table based on a Grid. Checking this snippet code we create an example where we experienced some strange behaviours (https://github.com/eclipse/nebula/blob/master/examples/org.eclipse.nebula.snippets/src/org/eclipse/nebula/snippets/grid/GridSnippet9.java):
We customized it a bit for having more columns and introduce some images beside the text. This is our code: //CODE SNIPPET EXAMPLE final Grid grid = new Grid(composite, SWT.BORDER); grid.setLinesVisible(true); for (int i = 0; i < 5; i++) { GridColumn column = new GridColumn(grid, SWT.NONE); column.setText("COLUMN" + i); column.setWidth(150); grid.setHeaderVisible(true); }
This is the look of our table:
Two questions are raised from here:
It should be very appreaciated your answers Thanks in advanced and Best regards!!