#define IMAGECLASS TabInterfaceImages #define IMAGEFILE <DockTab/DockTab.iml> #include <Draw/iml_header.h> ... ... struct Style : ChStyle<Style> { int tabheight, margin, extendleft; Rect sel, edge; Value normal[4], first[4], last[4], both[4]; Font font; }; const Style* style; static const Style& StyleDefault(); TabInterface& SetStyle(const Style& s); const Style* GetStyle() { return style ? style : &StyleDefault(); }
#define IMAGECLASS TabInterfaceImages #define IMAGEFILE <DockTab/DockTab.iml> #include <Draw/iml_source.h> ... ... CH_STYLE(TabInterface, Style, StyleDefault) { CtrlsImageLook(normal, TabInterfaceImages::I_TAB, 4); CtrlsImageLook(first, TabInterfaceImages::I_FTAB, 4); CtrlsImageLook(last, TabInterfaceImages::I_LTAB, 4); CtrlsImageLook(both, TabInterfaceImages::I_BTAB, 4); }
Quote: |
void CtrlsImageLook(Value *look, int i, int n) { while(n--) *look++ = CtrlsImg::Get(i++); } |