shaders/shader_template/orshader_template_layout.cxx
#include "orshader_template_layout.h"
#define ORSHADER_TEMPLATE__LAYOUT ORShader_TemplateLayout
ORSHADER_TEMPLATE__DESCSTR,
bool ORShader_TemplateLayout::FBCreate()
{
UICreate ();
UIConfigure ();
UIReset ();
return true;
}
void ORShader_TemplateLayout::FBDestroy()
{
}
void ORShader_TemplateLayout::UICreate()
{
int lS=4;
AddRegion( "ButtonTest", "ButtonTest",
SetControl( "ButtonTest", mButtonTest );
}
void ORShader_TemplateLayout::UIConfigure()
{
mButtonTest.OnClick.Add(
this, (
FBCallback)&ORShader_TemplateLayout::OnButtonTestClick );
}
void ORShader_TemplateLayout::UIReset()
{
mButtonTest.Caption = "Test";
}
void ORShader_TemplateLayout::OnButtonTestClick(
HISender pSender,
HKEvent pEvent)
{
mButtonTest.Caption = "Clicked";
}