Home » U++ Library support » Look and Chameleon Technology » Strange Chameleon Problem
Strange Chameleon Problem [message #13663] |
Sat, 19 January 2008 15:54 |
Oblivion
Messages: 1091 Registered: August 2007
|
Senior Contributor |
|
|
I'm working on a TabInterface class (which is derived from Quicktabs) for my dockctrl project. Bu I have a strange problem with chameleon system.
the chameleon definitions are;
in .h file:
#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(); }
in .cpp file:
#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);
}
The strange part is, whenever I use my own DockTab.iml file and use value with ChPaint(), I get some other ctrl images from the CtrlLib's CtrlsImg class...
My every effort to avoid this strange behaviour is failed...
Any Idea?
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Sat, 19 January 2008 16:14] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Mar 29 01:57:33 CET 2024
Total time taken to generate the page: 0.01045 seconds
|