|Exposing Shell's Styles by default [message #721070]
||Wed, 31 August 2011 20:07
Registered: July 2009
It seems that right now when I create an SWT application, I can't change any of the shell's styles from the Designer, until I manually change the call to the shell's constructor and pass it some style bits.|
I think it would be much more user friendly if the Layout option was exposed without having to modify code to do it.
I see two ways to do it:
1) Pass a few style bits by default so that it always appears (for example, SHELL_TRIM for Application Windows, and DIALOG_TRIM for dialogs).
2) Leave the call to the shell's default consturctor as it is, but still add a Styles item in the property pane.
I'm not sure if the 2nd option is that good, because when Styles item is empty (it shows "") the style bits are set to SWT.NONE, and if it will look the same for the default style it may confuse users.
Powered by FUDForum
. Page generated in 0.13485 seconds