mGNCS API Reference  v1.2.0
A new control set and a new framework for MiniGUI apps
msledit.h
Go to the documentation of this file.
1 
42 #ifndef _MGUI_NCSCTRL_SLEDIT_H
43 #define _MGUI_NCSCTRL_SLEDIT_H
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif /* __cplusplus */
48 
54 /*
55  * \def NCSCTRL_SLEDIT
56  * \brief the name of sledit control
57 */
58 #define NCSCTRL_SLEDIT NCSCLASSNAME("sledit")
59 
60 typedef struct _mSlEdit mSlEdit;
61 typedef struct _mSlEditClass mSlEditClass;
62 typedef struct _mSlEditRenderer mSlEditRenderer;
63 
64 #define mSlEditHeader(Class) \
65  mEditHeader(Class) \
66  DWORD status; \
67  int editPos; \
68  int selStart; \
69  int selEnd; \
70  int nContX; \
71  int nContW; \
72  RECT rcVis; \
73  int nVisW; \
74  int startX; \
75  int startY; \
76  int nBlockSize; \
77  StrBuffer content; \
78  char *tipText; \
79  int hardLimit; \
80  int passwdChar; \
81  int changed; \
82  TextCopyPaste *cp;
83 
129 struct _mSlEdit
130 {
131  mSlEditHeader(mSlEdit)
132 };
133 
134 #define mSlEditClassHeader(clsName, parentClass) \
135  mEditClassHeader(clsName, parentClass)
136 
143 struct _mSlEditClass
144 {
145  mSlEditClassHeader(mSlEdit, mEdit)
146 };
147 
154 MGNCS_EXPORT extern mSlEditClass g_stmSlEditCls;
155 
156 #define mSlEditRendererHeader(clsName, parentClass) \
157  mEditRendererHeader(clsName, parentClass)
158 
165 struct _mSlEditRenderer
166 {
167  mSlEditRendererHeader(mSlEdit, mEdit)
168 };
169 
170 
175 #define NCSS_SLEDIT_PASSWORD (0x0001L<<NCSS_EDIT_SHIFT)
176 
181 #define NCSS_SLEDIT_AUTOSELECT (0x0002L<<NCSS_EDIT_SHIFT)
182 
183 /*
184  * \def NCSS_SLEDIT_TIP
185  * \brief Shows specified tip text.
186  */
187 #define NCSS_SLEDIT_TIP (0x0004L<<NCSS_EDIT_SHIFT)
188 
189 #define NCSS_SLEDIT_SHIFT (NCSS_EDIT_SHIFT+3)
190 
193 {
194  NCSP_SLEDIT_TIPTEXT = NCSP_EDIT_MAX + 1,
196  NCSP_SLEDIT_MAX
197 };
198 
201 {
204  NCSN_SLEDIT_MAX = NCSN_EDIT_MAX + 1,
205 };
206 
207 #define NCST_SLEDIT_FOCUSED 0x00000001L
208 #define NCST_SLEDIT_MODIFY 0x00000002L
209 #define NCST_SLEDIT_TMP 0x00000004L
210 #define NCST_SLEDIT_REPLACE 0x00000008L
211 
214 #ifdef __cplusplus
215 }
216 #endif /* __cplusplus */
217 
218 #endif /* _MGUI_NCSCTRL_SLEDIT_H */
the edit struct of edit control, derived from mScrollView.
mSlEditNotify
Definition: msledit.h:200
SlEdit class&#39;s Renderer interface, derived from mEditRenderer.
the single line control, derived from mEdit.
mSlEditProp
Definition: msledit.h:192
MGNCS_EXPORT mSlEditClass g_stmSlEditCls
the instance of mSlEditClass
the VTable of mSlEdit, derived from mEditClass.