Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » New widget and user defined styles
New widget and user defined styles [message #809297] Tue, 28 February 2012 17:53
Wim Jongman is currently offline Wim JongmanFriend
Messages: 414
Registered: July 2009
Senior Member


I am part of the Nebula team and I am in the process of creating a new widget where I subclass Composite. In my two-argument constructor I want to pass a style bit to control the creation of the widget.

Since I need to call super in the widget's constructor, how can I prevent passing a style that will be misinterpreted by the superclasses.

For instance, if I invent a style "MY_WIDGET.WRAP" with a value of 0x200000, this interferes with the style SWT.DOUBLE_BUFFERED which is also used by Composite.

What are the save values to use for custom widget styles?



Previous Topic:Empty table row height.
Next Topic:SWT import problems
Goto Forum:

Current Time: Tue Apr 24 06:59:30 GMT 2018

Powered by FUDForum. Page generated in 0.02212 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software