有人用过ucgui的Multipage控件吗

 我来答
析清桐9
2015-09-21 · TA获得超过964个赞
知道小有建树答主
回答量:278
采纳率:100%
帮助的人:273万
展开全部
UCGUI Multipage使用例子
1.
19.
20. #include
21. #include "GUI.h"缓孝
22. #include "MULTIPAGE.h"
23.
24.
30.
31.
38. static const GUI_WIDGET_CREATE_INFO _aDialogCreate1[] = {
39. { WINDOW_CreateIndirect, "Dialog 1"扰扒稿, 0, 0, 0, 260, 100, FRAMEWIN_CF_MOVEABLE },
40. { BUTTON_CreateIndirect, "Button", GUI_ID_BUTTON0, 5, 30, 80, 20, 0},
41. { TEXT_CreateIndirect, "Dialog 1", 0, 5, 10, 50, 20, TEXT_CF_LEFT }
42. };
43.
44. static const GUI_WIDGET_CREATE_INFO _aDialogCreate2[] = {
45. { WINDOW_CreateIndirect, "Dialog 2", 0, 0, 0, 260, 100, FRAMEWIN_CF_MOVEABLE },
46. { CHECKBOX_CreateIndirect, "", GUI_ID_CHECK0, 5, 30, 0, 0, 0},
47. { CHECKBOX_CreateIndirect, "", GUI_ID_CHECK1, 5, 50, 0, 0, 0},
48. { TEXT_CreateIndirect, "Select 0", GUI_ID_TEXT0, 25, 30, 50, 15, TEXT_CF_LEFT },
49. { TEXT_CreateIndirect, "Select 1", GUI_ID_TEXT1, 25, 50, 50, 15, TEXT_CF_LEFT },
50. { TEXT_CreateIndirect, "Dialog 2", 0, 5, 10, 50, 20, TEXT_CF_LEFT }
51. };
52.
53. static const GUI_WIDGET_CREATE_INFO _aDialogCreate3[] = {
54. { WINDOW_CreateIndirect, "Dialog 3", 0, 0, 0, 260, 100, FRAMEWIN_CF_MOVEABLE },
55. { RADIO_CreateIndirect, "", GUI_ID_RADIO0, 5, 30, 0, 0, 0, 3},
56. { TEXT_CreateIndirect, "Option 1", GUI_ID_TEXT0, 25, 30, 50, 15, TEXT_CF_LEFT },
57. { TEXT_CreateIndirect, "此帆Option 2", GUI_ID_TEXT1, 25, 50, 50, 15, TEXT_CF_LEFT },
58. { TEXT_CreateIndirect, "Option 3", GUI_ID_TEXT2, 25, 70, 50, 15, TEXT_CF_LEFT },
59. { TEXT_CreateIndirect, "Dialog 3", 0, 5, 10, 50, 20, TEXT_CF_LEFT }
60. };
61.
62. static const GUI_WIDGET_CREATE_INFO _aDialogCreate4[] = {
63. { WINDOW_CreateIndirect, "Dialog 4", 0, 0, 0, 260, 100, FRAMEWIN_CF_MOVEABLE },
64. { MULTIEDIT_CreateIndirect, "Text", GUI_ID_MULTIEDIT0, 5, 30, 200, 40 },
65. { TEXT_CreateIndirect, "Dialog 4", 0, 5, 10, 50, 20, TEXT_CF_LEFT }
66. };
67.
68. static const GUI_WIDGET_CREATE_INFO _aDialogCreate5[] = {
69. { WINDOW_CreateIndirect, "Dialog 5", 0, 0, 0, 260, 100, FRAMEWIN_CF_MOVEABLE },
70. { SLIDER_CreateIndirect, "", GUI_ID_SLIDER0, 5, 30, 200, 40 },
71. { TEXT_CreateIndirect, "Dialog 5", 0, 5, 10, 50, 20, TEXT_CF_LEFT }
72. };
73.
74. static const GUI_WIDGET_CREATE_INFO _aDialogCreate6[] = {
75. { WINDOW_CreateIndirect, "Dialog 6", 0, 0, 0, 260, 100, FRAMEWIN_CF_MOVEABLE },
76. { SCROLLBAR_CreateIndirect, "", GUI_ID_SCROLLBAR0, 5, 30, 200, 40 },
77. { TEXT_CreateIndirect, "Dialog 6", 0, 5, 10, 50, 20, TEXT_CF_LEFT }
78. };
79.
80.
86.
87.
91. static void _cbDialog1(WM_MESSAGE * pMsg) {
92. WM_HWIN hDlg;
93. hDlg = pMsg->hWin;
94. switch (pMsg->MsgId) {
95. default:
96. WM_DefaultProc(pMsg);
97. }
98. }
99.
100.
104. static void _cbDialog2(WM_MESSAGE * pMsg) {
105. WM_HWIN hDlg;
106. hDlg = pMsg->hWin;
107. switch (pMsg->MsgId) {
108. default:
109. WM_DefaultProc(pMsg);
110. }
111. }
112.
113.
117. static void _cbDialog3(WM_MESSAGE * pMsg) {
118. WM_HWIN hDlg;
119. hDlg = pMsg->hWin;
120. switch (pMsg->MsgId) {
121. default:
122. WM_DefaultProc(pMsg);
123. }
124. }
125.
126.
130. static void _cbDialog4(WM_MESSAGE * pMsg) {
131. WM_HWIN hDlg, hItem;
132. hDlg = pMsg->hWin;
133. switch (pMsg->MsgId) {
134. case WM_INIT_DIALOG:
135. hItem = WM_GetDialogItem(hDlg, GUI_ID_MULTIEDIT0);
136. MULTIEDIT_SetText(hItem, "MULTIEDIT widget");
137. MULTIEDIT_SetInsertMode(hItem, 1);
138. break;
139. default:
140. WM_DefaultProc(pMsg);
141. }
142. }
143.
144.
148. static void _cbDialog5(WM_MESSAGE * pMsg) {
149. WM_HWIN hDlg;
150. hDlg = pMsg->hWin;
151. switch (pMsg->MsgId) {
152. default:
153. WM_DefaultProc(pMsg);
154. }
155. }
156.
157.
161. static void _cbDialog6(WM_MESSAGE * pMsg) {
162. WM_HWIN hDlg;
163. hDlg = pMsg->hWin;
164. switch (pMsg->MsgId) {
165. default:
166. WM_DefaultProc(pMsg);
167. }
168. }
AiPPT
2024-09-19 广告
随着AI技术的飞速发展,如今市面上涌现了许多实用易操作的AI生成工具1、简介:AiPPT: 这款AI工具智能理解用户输入的主题,提供“AI智能生成”和“导入本地大纲”的选项,生成的PPT内容丰富多样,可自由编辑和添加元素,图表类型包括柱状图... 点击进入详情页
本回答由AiPPT提供
匿名用户
2015-09-21
展开全部
说问题,你这样谁来回答你。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式