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   |
 |
jibe
Messages: 294 Registered: February 2007 Location: France
|
Experienced Member |
|
|
Thanks ! I can now add packages from bazaar 
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. 
|
Yes, time is always a problem !
... But if you do, maybe you'll loose less time to answer beginner's questions 
|
|
|
 |
|
How to add controls from bazaar in my apps ?
By: jibe on Fri, 11 February 2011 11:30
|
 |
|
Re: How to add controls from bazaar in my apps ?
By: mr_ped on Fri, 11 February 2011 11:50
|
 |
|
Re: How to add controls from bazaar in my apps ?
By: jibe on Fri, 11 February 2011 14:37
|
 |
|
Re: How to add controls from bazaar in my apps ?
By: unknown user on Fri, 11 February 2011 14:46
|
 |
|
Re: How to add controls from bazaar in my apps ?
By: jibe on Fri, 11 February 2011 14:48
|
 |
|
Re: How to add controls from bazaar in my apps ?
By: mr_ped on Fri, 11 February 2011 17:27
|
 |
|
Re: How to add controls from bazaar in my apps ?
By: koldo on Fri, 11 February 2011 22:47
|
 |
|
Re: How to add controls from bazaar in my apps ?
By: jibe on Fri, 11 February 2011 23:02
|
 |
|
Re: How to add controls from bazaar in my apps ?
By: koldo on Fri, 11 February 2011 23:19
|
 |
|
Re: How to add controls from bazaar in my apps ?
By: jibe on Mon, 14 February 2011 11:05
|
 |
|
Re: How to add controls from bazaar in my apps ?
By: koldo on Mon, 14 February 2011 11:13
|
Goto Forum:
Current Time: Sun Aug 24 19:45:10 CEST 2025
Total time taken to generate the page: 0.05545 seconds
|