LabelBase& LabelBase::SetAlign(int align) { if(lbl.align != align) { lbl.align = align; LabelUpdate(); } return *this; }
LabelBase& LabelBase::SetVAlign(int valign) { if(lbl.valign != valign) { lbl.valign = valign; LabelUpdate(); } return *this; }
LabelBase& LabelBase::SetFont(Font font) { if(lbl.font != font) { lbl.font = font; LabelUpdate(); } return *this; }
LabelBase& LabelBase::SetRightImage(const Image& img, int spc, bool never_hide) { lbl.rimg = img; lbl.rspc = spc; lbl.rimg_never_hide = never_hide; LabelUpdate(); return *this; }
LabelBase& LabelBase::SetInk(Color ink, Color disabledink) { if(lbl.ink != ink || lbl.disabledink != disabledink) { lbl.ink = ink; lbl.disabledink = disabledink; LabelUpdate(); } return *this; }
HeaderCtrl::Column& HeaderCtrl::Column::SetMargin(int m) { if(m != margin) { margin = m; LabelUpdate(); } return *this; }
LabelBase& LabelBase::SetText(const char *text) { lbl.text = text; LabelUpdate(); return *this; }
LabelBase& LabelBase::SetPaintRect(const PaintRect& paintrect) { lbl.paintrect = paintrect; LabelUpdate(); return *this; }
HeaderCtrl::Column& HeaderCtrl::Column::SetRatio(double wd) { ratio = wd ? wd : 1; LabelUpdate(); return *this; }