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 » How to add controls from bazaar in my apps ?
Re: How to add controls from bazaar in my apps ? [message #31171 is a reply to message #31167] Fri, 11 February 2011 14:37 Go to previous messageGo to previous message
jibe is currently offline  jibe
Messages: 294
Registered: February 2007
Location: France
Experienced Member
Thanks ! I can now add packages from bazaar Smile

But I've still a problem when I compile, as soon as I add EditFile control in the .lay file :

main.cpp
In file included from /home/joseph/upp/uppsrc/CtrlCore/lay.h:22,
                 from /home/joseph/upp/MyApps/testEditFile/testEditFile.h:9,
                 from /home/joseph/upp/MyApps/testEditFile/main.cpp:1:
/home/joseph/upp/MyApps/testEditFile/testEditFile.lay:2: error: ‘EditFile’ does not name a type
In file included from /home/joseph/upp/uppsrc/CtrlCore/lay.h:36,
                 from /home/joseph/upp/MyApps/testEditFile/testEditFile.h:9,
                 from /home/joseph/upp/MyApps/testEditFile/main.cpp:1:
/home/joseph/upp/MyApps/testEditFile/testEditFile.lay: In function ‘void InitLayout(Upp::Ctrl&, L&, D&, testEditFileLayout__layid&) [with L = testEditFile, D
	 = testEditFile]’:
/home/joseph/upp/uppsrc/CtrlCore/TopWindow.h:239:   instantiated from ‘void Upp::CtrlLayout(T&) [with T = testEditFile]’
/home/joseph/upp/uppsrc/CtrlCore/TopWindow.h:247:   instantiated from ‘void Upp::CtrlLayout(T&, const char*) [with T = testEditFile]’
/home/joseph/upp/MyApps/testEditFile/main.cpp:7:   instantiated from here
/home/joseph/upp/MyApps/testEditFile/testEditFile.lay:2: error: ‘class testEditFile’ has no member named ‘edfFile1’
/home/joseph/upp/MyApps/testEditFile/testEditFile.lay:2: error: ‘class testEditFile’ has no member named ‘edfFile1’
/home/joseph/upp/MyApps/testEditFile/testEditFile.lay:2: error: ‘class testEditFile’ has no member named ‘edfFile1’
testEditFile: 1 file(s) built in (0:02.12), 2127 msecs / file, duration = 2132 msecs, parallelization 0%

There were errors. (0:02.28)


Here are my files :
TestEditFile.h
#ifndef _testEditFile_testEditFile_h
#define _testEditFile_testEditFile_h

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

#define LAYOUTFILE <testEditFile/testEditFile.lay>
#include <CtrlCore/lay.h>



class testEditFile : public WithtestEditFileLayout<TopWindow> {
public:
	typedef testEditFile CLASSNAME;
	testEditFile();
};

#endif

main.cpp
#include "testEditFile.h"



testEditFile::testEditFile()
{
	CtrlLayout(*this, "Window title");
}

GUI_APP_MAIN
{
	testEditFile().Run();
}

testEdifFile.lay
LAYOUT(testEditFileLayout, 332, 344)
	ITEM(EditFile, edfFile1, LeftPosZ(12, 296).TopPosZ(12, 19))
END_LAYOUT


mr_ped wrote on Fri, 11 February 2011 11:50

PS. will try to improve the guide, you are right, it's missing there, but need some spare time. Smile

Yes, time is always a problem !
... But if you do, maybe you'll loose less time to answer beginner's questions Wink



 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Upp and OpenSceneGraph
Next Topic: Introduction (Howard Lee Harkness)
Goto Forum:
  


Current Time: Sun Aug 24 19:45:10 CEST 2025

Total time taken to generate the page: 0.05545 seconds