SWT Widget Style Bits

From Eclipsepedia

Revision as of 11:34, 21 February 2008 by Eclipse-bugs.rizzoweb.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

All SWT Widgets take as a constructor argument a set of style bits that control various aspects of their behavior and appearance. The set of possible style bits are defined in the class org.eclipse.swt.SWT, but only a small subset applies to each Widget. The table below describes the bits that are applicable to each kind of Widget.

Widget class Style Bit Description
org.eclipse.swt.widgets.Button ARROW
CHECK
PUSH
RADIO
TOGGLE
FLAT
UP
DOWN
LEFT
RIGHT
CENTER
org.eclipse.swt.widgets.Combo DROP_DOWN
READ_ONLY
SIMPLE