MiniGUI API Reference (MiniGUI-Processes)
v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
|
Data Structures | |
struct | _TEXTPOSINFO |
Macros | |
#define | EM_GETSEL 0xF0B0 |
Get the selected string in the edit control. More... | |
#define | EM_SETSEL 0xF0B1 |
Set the selected point in the edit control and makes the text between insertion point and selection point selected. More... | |
#define | EM_SETSELPOS EM_SETSEL |
#define | EM_SETSELECTION EM_SETSEL |
#define | EM_SELECTALL 0xF0B2 |
Selects all the texts, the same meaning as ctrl+a. More... | |
#define | EM_GETSELPOS 0xF0B3 |
Get the position of the selection point. More... | |
#define | EM_INSERTCBTEXT 0xF0B4 |
Inserts the text in the clipboard to the current caret position. More... | |
#define | EM_COPYTOCB 0xF0B5 |
Copies the currently selected text to the clipboard. More... | |
#define | EM_CUTTOCB 0xF0B6 |
Cuts the currently selected text to the clipboard. More... | |
#define | EM_SETLFDISPCHAR 0xF0B7 |
Set the char used to represent the line seperator. More... | |
#define | EM_SETLINESEP 0xF0B8 |
Set the line seperator. More... | |
#define | EM_GETCARETPOS 0xF0B9 |
Get the position of the caret. More... | |
#define | EM_SETCARETPOS 0xF0BA |
Set the position of the caret. More... | |
#define | EM_SETINSERTION EM_SETCARETPOS |
#define | EM_GETLINECOUNT 0xF0BC |
Get the line number. More... | |
#define | EM_GETLINEHEIGHT 0xF0BD |
Get the height of a line. More... | |
#define | EM_SETLINEHEIGHT 0xF0BE |
Set the height of a line. More... | |
#define | EM_LINESCROLL 0xF0BF |
reserved. More... | |
#define | EM_INSERTTEXT 0xF0C0 |
Inserts the specified text to the current caret position. More... | |
#define | EM_LINELENGTH 0xF0C1 |
reserved. More... | |
#define | EM_REPLACESEL 0xF0C2 |
reserved. More... | |
#define | EM_GETMAXLIMIT 0xF0C3 |
Get text limit of a single-line edit control. More... | |
#define | EM_GETLINE 0xF0C4 |
reserved. More... | |
#define | EM_LIMITTEXT 0xF0C5 |
Set text limit of an edit control. More... | |
#define | EM_REDO 0xF0C6 |
Redo operation. More... | |
#define | EM_UNDO 0xF0C7 |
Undo operation. More... | |
#define | EM_FMTLINES 0xF0C8 |
reserved. More... | |
#define | EM_LINEFROMCHAR 0xF0C9 |
reserved. More... | |
#define | EM_SETTABSTOPS 0xF0CB |
reserved. More... | |
#define | EM_SETPASSWORDCHAR 0xF0CC |
Defines the character that edit control uses in conjunction with the ES_PASSWORD style. More... | |
#define | EM_SETREADONLY 0xF0CF |
Set or removes the read-only style (ES_READONLY) in an edit control. More... | |
#define | EM_SETDRAWSELECTFUNC 0xF0D0 |
Set the callback function on drawing selected chars. More... | |
#define | EM_SETGETCARETWIDTHFUNC 0xF0D1 |
Set the callback function on getting caret width. More... | |
#define | EM_GETPASSWORDCHAR 0xF0D2 |
Returns the character that edit controls uses in conjunction with the ES_PASSWORD style. More... | |
#define | EM_SETLIMITTEXT EM_LIMITTEXT |
#define | ED_CARETSHAPE_LINE 0 |
Line-shaped caret. More... | |
#define | ED_CARETSHAPE_BLOCK 1 |
Block-shaped caret. More... | |
#define | EM_CHANGECARETSHAPE 0xF0D3 |
Changes the shape of the caret. More... | |
#define | EM_REFRESHCARET 0xF0D4 |
Refresh caret of the edit control. More... | |
#define | EM_ENABLECARET 0xF0D5 |
To enable or disable the input caret. More... | |
#define | EM_GETLIMITTEXT 0xF0D6 |
Get text limit value of the edit control. More... | |
#define | EM_SETTITLETEXT 0xF0DC |
Set the title text displayed before content text. More... | |
#define | EM_GETTITLETEXT 0xF0DD |
Get the title text displayed before content text. More... | |
#define | EM_SETTIPTEXT 0xF0DE |
Set the tip text displayed when content is empty. More... | |
#define | EM_GETTIPTEXT 0xF0DF |
Get the tip text displayed when content is empty. More... | |
#define | EM_GETNUMOFPARAGRAPHS 0xF0E0 |
Get the number of paragraphs in textedit control. More... | |
#define | EM_GETPARAGRAPHLENGTH 0xF0E1 |
Get the specified paragraph length in textedit control. More... | |
#define | EM_GETPARAGRAPHTEXT 0xF0E2 |
Get the specified paragraph text from textedit control. More... | |
#define | EM_SETCARETPOSBYLINE 0xF0D9 |
Set the selected point in the edit control and makes the text between insertion point and selection point selected. This is set by really line. That means if you set the TES_AUTOWRAP, the line number you set, the caret pos line number you see. This is different from EM_SETCARETPOS. More... | |
#define | EM_GETCARETPOSBYLINE 0xF0DA |
Get the position of the caret. More... | |
#define | EM_SETSELPOSBYLINE 0xF0DB |
#define | EM_GETSELPOSBYLINE 0xF0E4 |
Get the position of the selection point. More... | |
#define | EM_GETPARAGRAPHLENGTHINMCHAR 0xF0E5 |
Get the specified paragraph length in textedit control. in text not charactors. More... | |
#define | EM_GETLINELENGTHINMCHAR 0xF0E6 |
Get the specified line length in textedit control. in charactors not byte. More... | |
#define | EM_GETLINELENGTH 0xF0E7 |
Get the specified line length in textedit control. More... | |
#define | EM_GETLINETEXT 0xF0E8 |
Get the specified line text from textedit control. More... | |
Typedefs | |
typedef int(* | ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char *, int, int) |
Type of the edit control callback function on drawing selected strings. More... | |
typedef struct _TEXTPOSINFO | TEXTPOSINFO |
#define EM_CHANGECARETSHAPE 0xF0D3 |
Changes the shape of the caret.
caret_shape | Shape index of the caret, can be ED_CARETSHAPE_LINE or ED_CARETSHAPE_BLOCK. |
#define EM_COPYTOCB 0xF0B5 |
Copies the currently selected text to the clipboard.
#define EM_CUTTOCB 0xF0B6 |
Cuts the currently selected text to the clipboard.
#define EM_ENABLECARET 0xF0D5 |
To enable or disable the input caret.
bEnable | TRUE to enable caret. |
#define EM_GETCARETPOS 0xF0B9 |
Get the position of the caret.
line_pos | Pointer to a integer buffer to save the caret line position. For single line editor, it is always zero. Note : Here "line" means a text string ended with a line seperator, not a single text line in wrap mode. So, char_pos means the character position in a text string. |
char_pos | Pointer to a integer buffer to save the caret character position. |
#define EM_GETCARETPOSBYLINE 0xF0DA |
Get the position of the caret.
line_pos | Pointer to a integer buffer to save the caret line position. For single line editor, it is always zero. |
char_pos | Pointer to a integer buffer to save the caret character position. |
#define EM_GETLIMITTEXT 0xF0D6 |
#define EM_GETLINECOUNT 0xF0BC |
Get the line number.
#define EM_GETLINEHEIGHT 0xF0BD |
Get the height of a line.
#define EM_GETLINELENGTH 0xF0E7 |
Get the specified line length in textedit control.
#define EM_GETLINELENGTHINMCHAR 0xF0E6 |
Get the specified line length in textedit control. in charactors not byte.
#define EM_GETLINETEXT 0xF0E8 |
Get the specified line text from textedit control.
#define EM_GETMAXLIMIT 0xF0C3 |
#define EM_GETNUMOFPARAGRAPHS 0xF0E0 |
#define EM_GETPARAGRAPHLENGTH 0xF0E1 |
Get the specified paragraph length in textedit control.
#define EM_GETPARAGRAPHLENGTHINMCHAR 0xF0E5 |
#define EM_GETPARAGRAPHTEXT 0xF0E2 |
Get the specified paragraph text from textedit control.
#define EM_GETPASSWORDCHAR 0xF0D2 |
Returns the character that edit controls uses in conjunction with the ES_PASSWORD style.
#define EM_GETSEL 0xF0B0 |
#define EM_GETSELPOS 0xF0B3 |
Get the position of the selection point.
line_pos | Pointer to a integer buffer to save the selection line position. For single line editor, it is always zero. Note : Here "line" means a text string ended with a line seperator, not a single text line in wrap mode. So, char_pos means the character position in a text string. |
char_pos | Pointer to a integer buffer to save the selection character position. |
#define EM_GETSELPOSBYLINE 0xF0E4 |
Get the position of the selection point.
line_pos | Pointer to a integer buffer to save the selection line position. For single line editor, it is always zero. |
char_pos | Pointer to a integer buffer to save the selection character position. |
#define EM_GETTIPTEXT 0xF0DF |
Get the tip text displayed when content is empty.
len | Should be length of buffer minus 1, left space for '\0' |
buffer | String buffer |
#define EM_GETTITLETEXT 0xF0DD |
Get the title text displayed before content text.
len | Should be length of buffer minus 1, left space for '\0' |
buffer | String buffer |
#define EM_INSERTCBTEXT 0xF0B4 |
Inserts the text in the clipboard to the current caret position.
len | Length of string |
string | Pointer to the text string |
#define EM_INSERTTEXT 0xF0C0 |
Inserts the specified text to the current caret position.
Normally used to input a long string.
len | Length of string |
string | Pointer to the text string |
#define EM_LIMITTEXT 0xF0C5 |
Set text limit of an edit control.
newLimit | The new text limit of an edit control, by character. |
#define EM_REDO 0xF0C6 |
#define EM_REFRESHCARET 0xF0D4 |
#define EM_SELECTALL 0xF0B2 |
Selects all the texts, the same meaning as ctrl+a.
#define EM_SETCARETPOS 0xF0BA |
Set the position of the caret.
line_pos | The new caret line position. For single line editor, it will be ignored. Note : Here "line" means a text string ended with a line seperator, not a single text line in wrap mode. So, char_pos means the character position in a text string. |
char_pos | The new caret character position. |
#define EM_SETCARETPOSBYLINE 0xF0D9 |
Set the selected point in the edit control and makes the text between insertion point and selection point selected. This is set by really line. That means if you set the TES_AUTOWRAP, the line number you set, the caret pos line number you see. This is different from EM_SETCARETPOS.
line_pos | Line position of the selection point. For single line editor, it is always zero. Note : For multi-line editor, "line" means a text string ended with a line seperator, in wrap mode there also is the really line number. So, char_pos means the character position in a text string. |
char_pos | Character(wide character) position of the selection point. |
#define EM_SETDRAWSELECTFUNC 0xF0D0 |
Set the callback function on drawing selected chars.
drawsel | The callback function used to draw selected strings. |
#define EM_SETGETCARETWIDTHFUNC 0xF0D1 |
Set the callback function on getting caret width.
get_caret_width | The callback function used to get caret width. The window handle and the maximum caret width are passed as arguments. |
#define EM_SETINSERTION EM_SETCARETPOS |
#define EM_SETLFDISPCHAR 0xF0B7 |
Set the char used to represent the line seperator.
In default case, the line sperator will not be shown. If the char used to represent the line seperator is not zero, this char will be shown in place of line seperator.
ch | The char used to represent the line seperator |
#define EM_SETLIMITTEXT EM_LIMITTEXT |
#define EM_SETLINEHEIGHT 0xF0BE |
Set the height of a line.
#define EM_SETLINESEP 0xF0B8 |
Set the line seperator.
In default case, the line sperator is Line Feed characters(LF , ASCII 10, '
').
ch | The new line seperator |
#define EM_SETPASSWORDCHAR 0xF0CC |
Defines the character that edit control uses in conjunction with the ES_PASSWORD style.
#define EM_SETREADONLY 0xF0CF |
Set or removes the read-only style (ES_READONLY) in an edit control.
readonly | Indicates whether the edit control is read-only:
|
#define EM_SETSEL 0xF0B1 |
Set the selected point in the edit control and makes the text between insertion point and selection point selected.
Generally, you should send EM_SETCARETPOS first to set insertion point before you use EM_SETSEL to select text.
line_pos | Line position of the selection point. For single line editor, it is always zero. Note : For multi-line editor, "line" means a text string ended with a line seperator, not a single text line in wrap mode. So, char_pos means the character position in a text string. |
char_pos | Character(wide character) position of the selection point. |
#define EM_SETTIPTEXT 0xF0DE |
Set the tip text displayed when content is empty.
#define EM_SETTITLETEXT 0xF0DC |
Set the title text displayed before content text.
#define EM_UNDO 0xF0C7 |
Type of the edit control callback function on drawing selected strings.
hWnd | Handle of the edit control. |
startx | x value of the beginning drawing position. |
starty | y value of the beginning drawing position. |
content | The string which will be drawed. |
len | Length of the string which should be drawed by this callback. |
selout | Length of the selected string that have been drawed before calling this callback function. |
typedef struct _TEXTPOSINFO TEXTPOSINFO |
Structure defines text position information.