[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Closer native OS idiosyncrasies support / SWT Style constant

L. Mihalkovic wrote:
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.

I only had to add a couple lines to MessageBox to make this work... please consider how nice it would be to open the door to this type of platform specific improvements...


-- Laurent Mihalkovic, co-author SWT/JFace in Action (www.manning.com/scarpino)


GIF image