void ME_MoveCaret(ME_TextEditor *editor) { int x, y, height; ME_WrapMarkedParagraphs(editor); ME_GetCursorCoordinates(editor, &editor->pCursors[0], &x, &y, &height); CreateCaret(editor->hWnd, NULL, 0, height); SetCaretPos(x, y); }
void ME_MoveCaret(ME_TextEditor *editor) { int x, y, height; ME_GetCursorCoordinates(editor, &editor->pCursors[0], &x, &y, &height); if(editor->bHaveFocus && !ME_IsSelection(editor)) { x = min(x, editor->rcFormat.right-1); ITextHost_TxCreateCaret(editor->texthost, NULL, 0, height); ITextHost_TxSetCaretPos(editor->texthost, x, y); } }
void ME_MoveCaret(ME_TextEditor *editor) { int x, y, height; if (ME_WrapMarkedParagraphs(editor)) ME_UpdateScrollBar(editor); ME_GetCursorCoordinates(editor, &editor->pCursors[0], &x, &y, &height); if(editor->bHaveFocus) { CreateCaret(editor->hWnd, NULL, 0, height); SetCaretPos(x, y); } }
void ME_MoveCaret(ME_TextEditor *editor) { int x, y, height; if (ME_WrapMarkedParagraphs(editor)) ME_UpdateScrollBar(editor); ME_GetCursorCoordinates(editor, &editor->pCursors[0], &x, &y, &height); if(editor->bHaveFocus && !ME_IsSelection(editor)) { x = min(x, editor->rcFormat.right-1); CreateCaret(editor->hWnd, NULL, 0, height); SetCaretPos(x, y); } }
void ME_InvalidateFromOfs(ME_TextEditor *editor, int nCharOfs) { RECT rc; int x, y, height; ME_Cursor tmp; ME_RunOfsFromCharOfs(editor, nCharOfs, &tmp.pRun, &tmp.nOffset); ME_GetCursorCoordinates(editor, &tmp, &x, &y, &height); rc.left = 0; rc.top = y; rc.bottom = y + height; rc.right = editor->rcFormat.right; InvalidateRect(editor->hWnd, &rc, FALSE); }