Skip to main content



      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 12:53
Eclipse UserFriend
Hi,

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?

Regards,

Wim

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


Current Time: Sun Aug 31 16:49:26 EDT 2025

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

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

Back to the top