当前位置: 首页>>代码示例>>C++>>正文


C++ MainForm::Initialize方法代码示例

本文整理汇总了C++中MainForm::Initialize方法的典型用法代码示例。如果您正苦于以下问题:C++ MainForm::Initialize方法的具体用法?C++ MainForm::Initialize怎么用?C++ MainForm::Initialize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MainForm的用法示例。


在下文中一共展示了MainForm::Initialize方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
开发者ID:AlessioMTX,项目名称:UserInterface-Bada,代码行数:30,代码来源:UserInterface.cpp

示例2: 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;
}
开发者ID:drstrangecode,项目名称:Bada_RssReader_DrStrangecode,代码行数:28,代码来源:DrStrangecodeRssReader.cpp

示例3: if

Tizen::Ui::Controls::Form*
FormFactory::CreateFormN(const Tizen::Base::String& formId, const Tizen::Ui::Scenes::SceneId& sceneId)
{
	Tizen::Ui::Controls::Form* pNewForm = null;
	SceneManager* pSceneManager = SceneManager::GetInstance();
	AppAssert(pSceneManager);

	if (formId == FORM_ANIMATION)
	{
		AnimationForm* pAnimationForm = new (std::nothrow) AnimationForm();
		pAnimationForm->Initialize();
		pNewForm = pAnimationForm;
	}
	else if (formId == FORM_BUTTON)
	{
		ButtonForm* pButtonForm = new (std::nothrow) ButtonForm();
		pButtonForm->Initialize();
		pNewForm = pButtonForm;
	}
	else if (formId == FORM_CHECK_BUTTON)
	{
		CheckButtonForm* pCheckButtonForm = new (std::nothrow) CheckButtonForm();
		pCheckButtonForm->Initialize();
		pNewForm = pCheckButtonForm;
	}
	else if (formId == FORM_COLOR_PICKER)
	{
		ColorPickerForm* pColorPickerForm = new (std::nothrow) ColorPickerForm();
		pColorPickerForm->Initialize();
		pNewForm = pColorPickerForm;
	}
	else if (formId == FORM_CUSTOM_BUTTON)
	{
		CustomButtonForm* pCustomButtonForm = new (std::nothrow) CustomButtonForm();
		pCustomButtonForm->Initialize();
		pNewForm = pCustomButtonForm;
	}
	else if (formId == FORM_TABBAR)
	{
		TabBarForm* pTabBarForm = new (std::nothrow) TabBarForm();
		pTabBarForm->Initialize();
		pNewForm = pTabBarForm;
	}
	else if (formId == FORM_DATE_TIME)
	{
		DateTimeForm* pDateTimeForm = new (std::nothrow) DateTimeForm();
		pDateTimeForm->Initialize();
		pNewForm = pDateTimeForm;
	}
	else if (formId == FORM_EDIT)
	{
		EditForm* pEditForm = new (std::nothrow) EditForm();
		pEditForm->Initialize();
		pNewForm = pEditForm;
	}
	else if (formId == FORM_ENRICHED_TEXT)
	{
		EnrichedTextForm* pEnrichedTextForm = new (std::nothrow) EnrichedTextForm();
		pEnrichedTextForm->Initialize();
		pNewForm = pEnrichedTextForm;
	}
	else if (formId == FORM_EXPANDABLE_EDIT_AREA)
	{
		ExpandableEditAreaForm* pExpandableEditAreaForm = new (std::nothrow) ExpandableEditAreaForm();
		pExpandableEditAreaForm->Initialize();
		pNewForm = pExpandableEditAreaForm;
	}
	else if (formId == FORM_GALLERY)
	{
		GalleryForm* pGalleryForm = new (std::nothrow) GalleryForm();
		pGalleryForm->Initialize();
		pNewForm = pGalleryForm;
	}
	else if (formId == FORM_GROUPED_LISTVIEW)
	{
		GroupedListViewForm* pGroupedListViewForm = new (std::nothrow) GroupedListViewForm();
		pGroupedListViewForm->Initialize();
		pNewForm = pGroupedListViewForm;
	}
	else if (formId == FORM_ICON_LISTVIEW)
	{
		IconListViewForm* pIconListViewForm = new (std::nothrow) IconListViewForm();
		pIconListViewForm->Initialize();
		pNewForm = pIconListViewForm;
	}
	else if (formId == FORM_LISTVIEW)
	{
		ListViewForm* pListViewForm = new (std::nothrow) ListViewForm();
		pListViewForm->Initialize();
		pNewForm = pListViewForm;
	}
	else if (formId == FORM_MAIN)
	{
		MainForm* pMainForm = new (std::nothrow) MainForm();
		pMainForm->Initialize();
		pNewForm = pMainForm;
	}
	else if (formId == FORM_MENU)
	{
		MenuForm* pMenuForm = new (std::nothrow) MenuForm();
//.........这里部分代码省略.........
开发者ID:justinkchen,项目名称:giraffe,代码行数:101,代码来源:FormFactory.cpp


注:本文中的MainForm::Initialize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。