Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsTable Column: displaying the & character
https://www.eclipse.org/forums/index.php/mv/msg/147525/464409/#msg_464409
Originally posted by: matthew1801.hotmail.com
Hi,
I am using an SWT Table, trying to display an '&' character in a table
column. I have tried the following without success:
TableColumn col = new TableColumn(table, SWT.LEFT);
col.setText("A&B"); --> displays "AB"
col.setText("A&&B"); --> displays "A B"
col.setText("A\&B"); --> displays "AB"
col.setText("A\&&B"); --> displays "A B"
Is it possible to display the '&' character in a TableColumn? Or is this
a bug with the SWT Table?
Thanks in advance.
Matthew]]>2005-11-23T08:20:30-00:00Re: Table Column: displaying the & character
https://www.eclipse.org/forums/index.php/mv/msg/147525/464504/#msg_464504
/*
* Bug in Windows. When a column header contains a
* mnemonic character, Windows does not measure the
* text properly. This causes '...' to always appear
* at the end of the text. The fix is to remove
* mnemonic characters and replace doubled mnemonics
* with spaces.
*/
"Matthew Ma" <matthew1801@hotmail.com> wrote in message
news:4bf994fab5717e467cf89f5b9805bfb4$1@www.eclipse.org...
> Hi,
>
> I am using an SWT Table, trying to display an '&' character in a table
> column. I have tried the following without success:
>
> TableColumn col = new TableColumn(table, SWT.LEFT);
>
> col.setText("A&B"); --> displays "AB"
> col.setText("A&&B"); --> displays "A B"
> col.setText("A\&B"); --> displays "AB"
> col.setText("A\&&B"); --> displays "A B"
>
> Is it possible to display the '&' character in a TableColumn? Or is this
> a bug with the SWT Table?
>
> Thanks in advance.
>
> Matthew
>
>]]>Veronika Irvine2005-11-23T15:35:49-00:00Re: Table Column: displaying the & character
https://www.eclipse.org/forums/index.php/mv/msg/147525/464536/#msg_464536
Daniel Spiewak2005-11-24T01:37:02-00:00