Home » Community » Newbie corner » example SetLayout question
example SetLayout question [message #37675] |
Thu, 01 November 2012 12:41  |
nmg01
Messages: 1 Registered: November 2012 Location: Bucharest
|
Junior Member |
|
|
Hello guys.
I am the absolute U++ begginer and i'm trying to understand some things. I used only MFC previously and U++ is totaly new for me.
I need to figure out some basic things.
For example, in SetLayout sample:
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
#define LAYOUTFILE <SetLayout/SetLayout.lay>
#include <CtrlCore/lay.h>
class MyApp : public WithLayout1<TopWindow> {
public:
void Layout1() { [b]SetLayout_Layout1(*this)[/b]; }
void Layout2() { [b]SetLayout_Layout2(*this)[/b]; }
typedef MyApp CLASSNAME;
MyApp()
{
CtrlLayout(*this, "Window title");
layout1 <<= THISBACK(Layout1);
layout2 <<= THISBACK(Layout2);
}
};
GUI_APP_MAIN
{
MyApp().Run();
}
Where does the two functions SetLayout_Layout1() and SetLayout_Layout2() came from ? I suspect they are members of some class, but which one ?
|
|
|
|
Goto Forum:
Current Time: Tue Apr 29 02:06:19 CEST 2025
Total time taken to generate the page: 0.00603 seconds
|