42 #if defined(__cplusplus) 46 #define MULTIEDIT_CF_READONLY (1 << 0) 47 #define MULTIEDIT_CF_INSERT (1 << 2) 48 #define MULTIEDIT_CF_AUTOSCROLLBAR_V (1 << 3) 49 #define MULTIEDIT_CF_AUTOSCROLLBAR_H (1 << 4) 50 #define MULTIEDIT_CF_PASSWORD (1 << 5) 52 #define MULTIEDIT_SF_READONLY MULTIEDIT_CF_READONLY 53 #define MULTIEDIT_SF_INSERT MULTIEDIT_CF_INSERT 54 #define MULTIEDIT_SF_AUTOSCROLLBAR_V MULTIEDIT_CF_AUTOSCROLLBAR_V 55 #define MULTIEDIT_SF_AUTOSCROLLBAR_H MULTIEDIT_CF_AUTOSCROLLBAR_H 56 #define MULTIEDIT_SF_PASSWORD MULTIEDIT_CF_PASSWORD 62 #define MULTIEDIT_CI_EDIT 0 63 #define MULTIEDIT_CI_READONLY 1 72 typedef WM_HMEM MULTIEDIT_HANDLE;
80 MULTIEDIT_HANDLE MULTIEDIT_Create (
int x0,
int y0,
int xSize,
int ySize, WM_HWIN hParent,
int Id,
int Flags,
int ExFlags,
const char * pText,
int MaxLen);
81 MULTIEDIT_HANDLE MULTIEDIT_CreateEx (
int x0,
int y0,
int xSize,
int ySize, WM_HWIN hParent,
int WinFlags,
int ExFlags,
int Id,
int BufferSize,
const char * pText);
82 MULTIEDIT_HANDLE MULTIEDIT_CreateIndirect(
const GUI_WIDGET_CREATE_INFO* pCreateInfo, WM_HWIN hWinParent,
int x0,
int y0, WM_CALLBACK * cb);
83 MULTIEDIT_HANDLE MULTIEDIT_CreateUser (
int x0,
int y0,
int xSize,
int ySize, WM_HWIN hParent,
int WinFlags,
int ExFlags,
int Id,
int BufferSize,
const char * pText,
int NumExtraBytes);
92 void MULTIEDIT_Callback(WM_MESSAGE * pMsg);
101 int MULTIEDIT_AddKey (MULTIEDIT_HANDLE hObj,
U16 Key);
102 int MULTIEDIT_AddText (MULTIEDIT_HANDLE hObj,
const char * s);
103 void MULTIEDIT_EnableBlink (MULTIEDIT_HANDLE hObj,
int Period,
int OnOff);
104 int MULTIEDIT_GetCursorCharPos (MULTIEDIT_HANDLE hObj);
105 void MULTIEDIT_GetCursorPixelPos(MULTIEDIT_HANDLE hObj,
int * pxPos,
int * pyPos);
106 void MULTIEDIT_GetPrompt (MULTIEDIT_HANDLE hObj,
char* sDest,
int MaxNumChars);
107 int MULTIEDIT_GetTextSize (MULTIEDIT_HANDLE hObj);
108 void MULTIEDIT_GetText (MULTIEDIT_HANDLE hObj,
char* sDest,
int MaxNumChars);
109 int MULTIEDIT_GetUserData (MULTIEDIT_HANDLE hObj,
void * pDest,
int NumBytes);
110 void MULTIEDIT_SetTextAlign (MULTIEDIT_HANDLE hObj,
int Align);
111 void MULTIEDIT_SetAutoScrollH (MULTIEDIT_HANDLE hObj,
int OnOff);
112 void MULTIEDIT_SetAutoScrollV (MULTIEDIT_HANDLE hObj,
int OnOff);
113 void MULTIEDIT_SetBkColor (MULTIEDIT_HANDLE hObj,
unsigned Index,
GUI_COLOR color);
114 void MULTIEDIT_SetCursorCharPos (MULTIEDIT_HANDLE hObj,
int x,
int y);
115 void MULTIEDIT_SetCursorPixelPos(MULTIEDIT_HANDLE hObj,
int x,
int y);
116 void MULTIEDIT_SetCursorOffset (MULTIEDIT_HANDLE hObj,
int Offset);
117 void MULTIEDIT_SetHBorder (MULTIEDIT_HANDLE hObj,
unsigned HBorder);
118 void MULTIEDIT_SetFocussable (MULTIEDIT_HANDLE hObj,
int State);
119 void MULTIEDIT_SetFont (MULTIEDIT_HANDLE hObj,
const GUI_FONT * pFont);
120 void MULTIEDIT_SetInsertMode (MULTIEDIT_HANDLE hObj,
int OnOff);
121 void MULTIEDIT_SetBufferSize (MULTIEDIT_HANDLE hObj,
int BufferSize);
122 void MULTIEDIT_SetMaxNumChars (MULTIEDIT_HANDLE hObj,
unsigned MaxNumChars);
123 void MULTIEDIT_SetPrompt (MULTIEDIT_HANDLE hObj,
const char* sPrompt);
124 void MULTIEDIT_SetReadOnly (MULTIEDIT_HANDLE hObj,
int OnOff);
125 void MULTIEDIT_SetPasswordMode (MULTIEDIT_HANDLE hObj,
int OnOff);
126 void MULTIEDIT_SetText (MULTIEDIT_HANDLE hObj,
const char* s);
127 void MULTIEDIT_SetTextColor (MULTIEDIT_HANDLE hObj,
unsigned Index,
GUI_COLOR color);
128 int MULTIEDIT_SetUserData (MULTIEDIT_HANDLE hObj,
const void * pSrc,
int NumBytes);
129 void MULTIEDIT_SetWrapNone (MULTIEDIT_HANDLE hObj);
130 void MULTIEDIT_SetWrapChar (MULTIEDIT_HANDLE hObj);
131 void MULTIEDIT_SetWrapWord (MULTIEDIT_HANDLE hObj);
140 #define MULTIEDIT_SetMaxLen(hObj, MaxLen) MULTIEDIT_SetBufferSize(hObj, MaxLen) 141 #define MULTIEDIT_GetStringSize MULTIEDIT_GetTextSize 143 #if defined(__cplusplus) 147 #endif // GUI_WINSUPPORT 148 #endif // MULTIEDIT_H