Table header not visible - Windows 7
Jacob Carlborg
doob at me.com
Sat Feb 16 07:15:49 PST 2013
On 2013-02-16 14:01, deed wrote:
> This example code doesn't render any table headers on Windows 7:
>
>
> Table table2 = new Table(shell, SWT.NONE);
> table2.setBounds(10, 10, 270, 80);
> table2.setHeaderVisible(true);
>
> TableColumn fruit = new TableColumn(table2, SWT.LEFT);
> fruit.setText("Fruit");
> fruit.setWidth(100);
> TableColumn colour = new TableColumn(table2, SWT.LEFT);
> colour.setText("Colour");
> colour.setWidth(170);
>
> TableItem fruit1 = new TableItem(table2, SWT.NONE);
> fruit1.setText(0, "Apple");
> fruit1.setText(1, "Red");
> fruit1.setChecked(true);
> TableItem fruit2 = new TableItem(table2, SWT.NONE);
> fruit2.setText(["Kiwi", "Green"]);
> fruit2.setBackground(new Color(display, 255, 0, 0));
> TableItem fruit3 = new TableItem(table2, SWT.NONE);
> fruit3.setText(["Banana", "Yellow"]);
Please report any issues to https://github.com/d-widget-toolkit/dwt or
the proper submodule.
--
/Jacob Carlborg
More information about the Digitalmars-d-dwt
mailing list