Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] SWT.DRAW_MNEMONIC


Right, I forgot about the fact that the ampersand only disappears when you specify DRAW_MNEMONIC. Therefore it's necessary if you want to measure text like it will be rendered with DRAW_MNEMONIC.

David suggested that the mnemonic support may have been added for custom widgets. E.g., a custom button would want a mnemonic. Is that the (only) use case?

Knut


Felipe Heidrich <Felipe_Heidrich@xxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

04/21/2004 01:40 PM

Please respond to
platform-swt-dev

To
platform-swt-dev@xxxxxxxxxxx
cc
Subject
Re: [platform-swt-dev] SWT.DRAW_MNEMONIC





Hi Knut,

I'm not sure (didn't try), but using DRAW_MNEMONIC will case the & to
disappear and the following letter to be underlined, this would make a
difference in the width.

Felipe




Knut Radloff <knut_radloff@xxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
04/21/2004 12:25 PM
Please respond to
platform-swt-dev


To
platform-swt-dev@xxxxxxxxxxx
cc

Subject
[platform-swt-dev] SWT.DRAW_MNEMONIC







What was the motivation for adding this flag to GC.drawText? It seems that
only widgets should allow/need to support mnemonic characters.
Also, the doc for GC.textExtent mentions DRAW_MNEMONIC as one of the valid
flags. I wouldn't think it actually makes a difference when measuring
text.

Knut

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top