Пример #1
0
MkTitleBarControlNode* MkWindowFactory::CreateMessageBox
(const MkHashStr& name, const MkStr& title, const MkStr& desc, MkWindowBaseNode* callBackWindow, eMsgBoxType boxType, eMsgBoxButton btnType) const
{
	MkArray<MkHashStr> emptyArray;
	return _CreateMessageBox(name, title, emptyArray, desc, emptyArray, callBackWindow, boxType, btnType);
	
}
/*********************************************************************
*
*       MainTask
*/
void MainTask(void) {
  GUI_Init();
  while (1) {
    GUI_SetFont(&GUI_Font20B_ASCII);
    GUI_DispStringHCenterAt("Applicatoin defined MESSAGEBOX", 160, 5);
    GUI_ExecCreatedDialog(_CreateMessageBox("Message", "Caption", 0, &GUI_Font24));
    GUI_Clear();
    GUI_Delay(1000);
  }
}