[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Closer native OS idiosyncrasies support / SWT Style constant
|
- From: "L. Mihalkovic" <totolaricot@xxxxxxx>
- Date: Thu, 22 May 2008 11:01:00 -0400
- Newsgroups: eclipse.platform.swt
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.14 (Macintosh/20080421)
I know it is soon to be deprecated but I am looking at enhancing SWT on
Mac OS / Carbon. At the moment i am adding support for Sheets more
specifically looking at modifying MessageBox to optionally use sheets. I
know that you are all busy with Ganymede, but would it be possible to
create a SWT.NATIVE_LOOK style constant that would be a general flag for
branching off from the common SWT look to use whatever native trickery
exist on all supported platform.
for eg:
MessageBox mb = new MessageBox(parent, SWT.OK | SWT.ICON_INFORMATION |
SWT.NATIVE_LOOK);
would make the message box use a Mac OS sheet.
Toolbar tb = new Toolbar(..... | SWT.NATIVE_LOOK);
would use the native toolbar.
If nothing exist on the platform, the style would simply be ignored.
so... granted that you'd be interested in this, what value should this
constant have? (I can't figure the heuristic you follow to decide how to
allocate these constants).
Thx.
--
Laurent Mihalkovic, co-author SWT/JFace in Action (www.manning.com/scarpino)