startapplication.c

来自「ucgui V3.98 是目前网络上相对较新的ucgui高版本源码啦。有兴趣的可」· C语言 代码 · 共 288 行 · 第 1/5 页

C
288
字号
/*
*********************************************************************************************************
*                                             uC/GUI V3.98
*                        Universal graphic software for embedded applications
*
*                       (c) Copyright 2002, Micrium Inc., Weston, FL
*                       (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
*
*              礐/GUI is protected by international copyright laws. Knowledge of the
*              source code may not be used to write a similar product. This file may
*              only be used in accordance with a license and should not be redistributed
*              in any way. We appreciate your understanding and fairness.
*
----------------------------------------------------------------------
File        : MainTask.c
Purpose     : Main program, called from after main after initialisation
---------------------------END-OF-HEADER------------------------------
*/

#include <stddef.h>
#include "GUI.h"
#include "DIALOG.h"

/*********************************************************************
*
*       Types
*
**********************************************************************
*/

typedef struct {
  const GUI_WIDGET_CREATE_INFO * pResource;
  int nEntrys;
} DIALOG_RESOURCE;

/*********************************************************************
*
*       Defines
*
**********************************************************************
*/

/* Button id's used for key pad */
#define BUTTON_ID_0    GUI_ID_USER + 0
#define BUTTON_ID_1    GUI_ID_USER + 1
#define BUTTON_ID_2    GUI_ID_USER + 2
#define BUTTON_ID_3    GUI_ID_USER + 3
#define BUTTON_ID_4    GUI_ID_USER + 4
#define BUTTON_ID_5    GUI_ID_USER + 5
#define BUTTON_ID_6    GUI_ID_USER + 6
#define BUTTON_ID_7    GUI_ID_USER + 7
#define BUTTON_ID_8    GUI_ID_USER + 8
#define BUTTON_ID_9    GUI_ID_USER + 9
#define BUTTON_ID_PREV GUI_ID_USER + 10
#define BUTTON_ID_NEXT GUI_ID_USER + 11
#define BUTTON_ID_UP   GUI_ID_USER + 12
#define BUTTON_ID_DOWN GUI_ID_USER + 13

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?