Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Look and Chameleon Technology » Strange Chameleon Problem
Strange Chameleon Problem [message #13663] Sat, 19 January 2008 15:54 Go to previous message
Oblivion is currently offline  Oblivion
Messages: 577
Registered: August 2007
Location: Turkey
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... Sad
Any Idea?



index.php?t=getfile&id=948&private=0
  • Attachment: chproblem.jpg
    (Size: 34.76KB, Downloaded 554 times)


[Updated on: Sat, 19 January 2008 16:14]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: How can I change the background color of my Upp app?
Next Topic: Resizeing on Vista
Goto Forum:
  


Current Time: Thu Sep 19 00:14:15 CEST 2019

Total time taken to generate the page: 0.01003 seconds