Example for using the parameter gui classes
- Author
- MIP
#include <Base/Common/W32Compat.hh>
#include <wx/wx.h>
#include <Gui/ParamGUI.hh>
#include <Gui/StringConv.hh>
#include <Utils/Param.hh>
#include <iostream>
using namespace BIAS;
using namespace std;
class MyApp : public wxApp
{
public:
virtual bool OnInit();
};
DECLARE_APP(MyApp)
IMPLEMENT_APP(MyApp)
bool MyApp::OnInit()
{
param_.
AddParamInt(
"SampleInt1",
"Hilfetext zu SampleInt1",0,-100,100,0,1);
param_.
AddParamInt(
"SampleInt2",
"Hilfetext zu SampleInt2");
param_.
AddParamBool(
"SampleBool1",
"Hilfetext zu SampleBool1",
false,0,1);
param_.
AddParamBool(
"SampleBool2",
"Hilfetext zu SampleBool2");
frame->Show(TRUE);
SetTopWindow(frame);
return true;
}