Example #1
0
/*********************************************************************
*
*       GUI_Exec
*/
int GUI_Exec(void) {
  int r = 0;
  while (GUI_Exec1()) {
    r = 1;                  /* We have done something */
  }
  return r;
}
Example #2
0
/*********************************************************************
*
*       GUI_Exec
*/
int GUI_Exec(void) {
    int r = 0;
    void DisplayUpdate();
    while (GUI_Exec1()) {
        r = 1;                  /* We have done something */
    }
    if(r)
        DisplayUpdate();
    return r;
}
Example #3
0
/*********************************************************************
*
*       _Main
*/
static void _Main(void) {
  int xSize;
  int ySize;

 /*   设置要用于绘制的活动窗口    */
  WM_SelectWindow(WM_HBKWIN);
  GUI_Clear();
  #if (GUI_SUPPORT_CURSOR | GUI_SUPPORT_TOUCH)
    //GUI_CURSOR_Show();
  #endif
  //
  // Create and configure Control and Information window
  //
  xSize           = LCD_GetXSize();//
  ySize           = LCD_GetYSize();//
 if(win_foucus_button_x)
		_hDialogControl = GUI_CreateDialogBox(_aFrameWinControl, GUI_COUNTOF(_aFrameWinControl), &_cbFrameWinControl, WM_HBKWIN, 0, 0);
  
	  //_hDialogInfo    = GUI_CreateDialogBox(_aFrameWinInfo,    GUI_COUNTOF(_aFrameWinInfo),    &_cbFrameWinInfo,    WM_HBKWIN, (xSize >> 1) - 1,       0);
	else	
	_hDialogDis 		= GUI_CreateDialogBox(_aFrameWinDis, 		GUI_COUNTOF(_aFrameWinDis), 			&_cbFrameWinDis, WM_HBKWIN, 0, 0);
  /*是窗口不可见*/
	//WM_SetFocus(_hDialogDis);
	//WM_HideWindow(_hDialogInfo);
  //
  // Show Intro
  ///*   使窗口无效     */
	//
		//WM_HideWindow(_hDialogDis);
	//else
		//WM_HideWindow(_hDialogControl);
	
  WM_InvalidateWindow(_hDialogDis);
	/*    禁用存储设备用于重绘       */
  WM_DisableMemdev(WM_HBKWIN);
  //WM_HideWindow(_hDialogControl);
	/*    执行回调函数(通常用以重绘)         */
  GUI_Exec1();
	/*       允许存储设备用于重绘      */
  WM_EnableMemdev(WM_HBKWIN);
  /*GUIDEMO_Intro();
  //
  // Run the demos
  //
  for (_iDemo = 0; _GUIDemoConfig.apFunc[_iDemo]; _iDemo++) {
    _ClearHalt();
    GUIDEMO_UpdateControlText();
    (*_GUIDemoConfig.apFunc[_iDemo])();
    _iDemoMinor = 0;
    _Pressed    = 0;
  }
  _iDemo = 0;*/
  //
  // Cleanup
  //
 // 
 // WM_DeleteWindow(_hDialogInfo);
  #if (GUI_SUPPORT_CURSOR | GUI_SUPPORT_TOUCH)
    GUI_CURSOR_Hide();
  #endif
}