classnetColarUI::TitleBar

sys::Obj
  fwt::Widget
    fwt::Canvas
      netColarUI::TitleBar

Draws a full width Title bar. Text can be justified.

bg

Brush bg := Color.<ctor>("#DDDDDD")

fg

Brush fg := Color.<ctor>("#000000")

font

Font font := Font.<ctor>("bold 12pt Courier")

halign

Halign halign := Halign.left

Aligment of text: L,R,Center

onPaint

virtual override Void onPaint(Graphics g)

prefSize

virtual override Size prefSize(Hints hints := Hints.defVal)

sidePadding

Int sidePadding := 15

Padding to left and right of text (ignore when centered)

text

Str text := ""

topBotPadding

Int topBotPadding := 3

Padding above and bellow the text

underlineBrush

Brush underlineBrush := Color.<ctor>("#000000")

underlineHeight

Int underlineHeight := 0

Draw an underline across the bottom (x pixels high). 0 = no underline