本文整理汇总了C++中MainForm::Show方法的典型用法代码示例。如果您正苦于以下问题:C++ MainForm::Show方法的具体用法?C++ MainForm::Show怎么用?C++ MainForm::Show使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MainForm
的用法示例。
在下文中一共展示了MainForm::Show方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MainForm
bool
UserInterface::OnAppInitializing(AppRegistry& appRegistry)
{
// TODO:
// Initialize UI resources and application specific data.
// The application's permanent data and context can be obtained from the appRegistry.
//
// If this method is successful, return true; otherwise, return false.
// If this method returns false, the application will be terminated.
// Uncomment the following statement to listen to the screen on/off events.
//PowerManager::SetScreenEventListener(*this);
// Create a form
MainForm *pMainForm = new MainForm();
pMainForm->Initialize();
// Add the form to the frame
Frame *pFrame = GetAppFrame()->GetFrame();
pFrame->AddControl(*pMainForm);
// Set the current form
pFrame->SetCurrentForm(*pMainForm);
// Draw and Show the form
pMainForm->Draw();
pMainForm->Show();
return true;
}
示例2: OnInit
virtual bool OnInit(void) override
{
Application::InitializeBase();
Url::Ptr pUrl;
if (argc < 2) {
wxConfig config("IcingaStudio");
wxString wUrl;
if (!config.Read("url", &wUrl))
wUrl = "https://localhost:5665/";
std::string url = wUrl.ToStdString();
ConnectForm f(NULL, new Url(url));
if (f.ShowModal() != wxID_OK)
return false;
pUrl = f.GetUrl();
url = pUrl->Format(true);
wUrl = url;
config.Write("url", wUrl);
} else {
pUrl = new Url(argv[1].ToStdString());
}
MainForm *m = new MainForm(NULL, pUrl);
m->Show();
return true;
}
示例3: MainForm
bool
DrStrangecodeRssReader::OnAppInitializing(AppRegistry& appRegistry)
{
// Create a form
MainForm *pMainForm = new MainForm();
pMainForm->Initialize();
pMainForm->SetName(kMainFormNameString);
ItemForm * pItemForm = new ItemForm();
pItemForm->Initialize();
pItemForm->SetName(kItemFormNameString);
// Add the form to the frame
Frame *pFrame = GetAppFrame()->GetFrame();
pFrame->AddControl(*pMainForm);
pFrame->AddControl(*pItemForm);
// Set the current form
pFrame->SetCurrentForm(*pMainForm);
// Draw and Show the form
pMainForm->Draw();
pMainForm->Show();
return true;
}
示例4: main
int main()
{
MainForm mainForm;
mainForm.Init();
mainForm.CreateGUI();
mainForm.Show();
}