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 » Community » Newbie corner » Custom Control
Re: Custom Control [message #27591 is a reply to message #27587] Sun, 25 July 2010 08:52 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3361
Registered: August 2008
Senior Veteran
Hello Jeremy

I am not fully sure about your question.

If I need to include in a .lay file class a ctrl designed in another .lay file, I do this:

Imagine in Small.lay file it is designed a ctrl used in Big.lay, so, Package.h file contains:

#define LAYOUTFILE <MyProject/Small.lay>
#include <CtrlCore/lay.h>

struct SmallClass : WithSmallClass<ParentCtrl> {
	typedef SmallClass CLASSNAME;
	
	SmallClass();
	...
};

#define LAYOUTFILE <MyProject/Big.lay>
#include <CtrlCore/lay.h>

struct BigClass : WithBigClass<ParentCtrl> {
	typedef BigClass CLASSNAME;
	
	BigClass();
	...
};



Best regards
IƱaki
 
Read Message
Read Message
Read Message
Previous Topic: Problem with OpenGL functionality: glPrimitiveRestartIndex
Next Topic: Usage of images in different .h and .cpp files
Goto Forum:
  


Current Time: Wed May 15 09:24:18 CEST 2024

Total time taken to generate the page: 0.01887 seconds