24 #ifndef FXSCROLLAREA_H 25 #include "FXScrollArea.h" 33 TEXT_READONLY = 0x00100000,
34 TEXT_WORDWRAP = 0x00200000,
35 TEXT_OVERSTRIKE = 0x00400000,
36 TEXT_FIXEDWRAP = 0x00800000,
37 TEXT_NO_TABS = 0x01000000,
38 TEXT_AUTOINDENT = 0x02000000,
39 TEXT_SHOWACTIVE = 0x04000000,
40 TEXT_SHOWMATCH = 0x08000000,
46 FXColor normalForeColor;
193 FXColor selbackColor;
194 FXColor seltextColor;
195 FXColor hilitebackColor;
196 FXColor hilitetextColor;
197 FXColor activebackColor;
203 const FXchar *delimiters;
218 void movegap(FXint pos);
219 void sizegap(FXint sz);
220 FXwchar nxtChar(FXint& pos)
const;
221 FXwchar prvChar(FXint& pos)
const;
222 FXint charWidth(FXwchar ch,FXint indent)
const;
223 FXint xoffset(FXint start,FXint pos)
const;
224 FXint wrap(FXint start)
const;
225 FXint rowFromPos(FXint pos)
const;
226 FXint posFromRow(FXint row)
const;
227 FXint columnFromPos(FXint start,FXint pos)
const;
228 FXint posFromColumn(FXint start,FXint col)
const;
229 FXint indentOfLine(FXint start,FXint pos)
const;
230 FXbool isdelimiter(FXwchar w)
const;
231 FXint measureText(FXint start,FXint end,FXint& wmax,FXint& hmax)
const;
232 void calcVisRows(FXint s,FXint e);
234 FXint matchForward(FXint pos,FXint end,FXwchar l,FXwchar r,FXint level)
const;
235 FXint matchBackward(FXint pos,FXint beg,FXwchar l,FXwchar r,FXint level)
const;
236 FXint findMatching(FXint pos,FXint beg,FXint end,FXwchar ch,FXint level)
const;
237 void flashMatching();
238 void moveContents(FXint x,FXint y);
239 FXint changeBeg(FXint pos)
const;
240 FXint changeEnd(FXint pos)
const;
241 void mutation(FXint pos,FXint ncins,FXint ncdel,FXint nrins,FXint nrdel);
242 FXint overstruck(FXint start,FXint end,
const FXchar *text,FXint num);
243 void drawCursor(FXuint state);
244 virtual void paintCursor(
FXDCWindow& dc)
const;
245 virtual void eraseCursor(
FXDCWindow& dc)
const;
246 virtual void eraseCursorOverhang();
247 virtual void drawBufferText(
FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h,FXint pos,FXint n,FXuint style)
const;
248 virtual void fillBufferRect(
FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h,FXuint style)
const;
249 virtual FXuint styleOf(FXint beg,FXint end,FXint row,FXint col,FXint pos)
const;
250 virtual void drawTextRow(
FXDCWindow& dc,FXint row)
const;
251 virtual void drawContents(
FXDCWindow& dc)
const;
252 virtual void drawNumbers(
FXDCWindow& dc)
const;
253 virtual void replace(FXint pos,FXint del,
const FXchar *text,FXint ins,FXint style);
254 void updateRow(FXint row)
const;
255 void updateLines(FXint startpos,FXint endpos)
const;
256 void updateRange(FXint startpos,FXint endpos)
const;
257 FXint shiftText(FXint startpos,FXint endpos,FXint shift,FXbool notify);
258 FXbool deletePendingSelection(FXbool notify);
274 long onPaint(
FXObject*,FXSelector,
void*);
275 long onEnter(
FXObject*,FXSelector,
void*);
276 long onLeave(
FXObject*,FXSelector,
void*);
277 long onBlink(
FXObject*,FXSelector,
void*);
278 long onFlash(
FXObject*,FXSelector,
void*);
279 long onFocusIn(
FXObject*,FXSelector,
void*);
280 long onFocusOut(
FXObject*,FXSelector,
void*);
281 long onMotion(
FXObject*,FXSelector,
void*);
282 long onAutoScroll(
FXObject*,FXSelector,
void*);
283 long onLeftBtnPress(
FXObject*,FXSelector,
void*);
284 long onLeftBtnRelease(
FXObject*,FXSelector,
void*);
285 long onMiddleBtnPress(
FXObject*,FXSelector,
void*);
286 long onMiddleBtnRelease(
FXObject*,FXSelector,
void*);
287 long onRightBtnPress(
FXObject*,FXSelector,
void*);
288 long onRightBtnRelease(
FXObject*,FXSelector,
void*);
289 long onKeyPress(
FXObject*,FXSelector,
void*);
290 long onKeyRelease(
FXObject*,FXSelector,
void*);
291 long onUngrabbed(
FXObject*,FXSelector,
void*);
292 long onBeginDrag(
FXObject*,FXSelector,
void*);
293 long onEndDrag(
FXObject*,FXSelector,
void*);
294 long onDragged(
FXObject*,FXSelector,
void*);
295 long onDNDEnter(
FXObject*,FXSelector,
void*);
296 long onDNDLeave(
FXObject*,FXSelector,
void*);
297 long onDNDMotion(
FXObject*,FXSelector,
void*);
298 long onDNDDrop(
FXObject*,FXSelector,
void*);
299 long onDNDRequest(
FXObject*,FXSelector,
void*);
300 long onSelectionLost(
FXObject*,FXSelector,
void*);
301 long onSelectionGained(
FXObject*,FXSelector,
void*);
302 long onSelectionRequest(
FXObject*,FXSelector,
void* ptr);
303 long onClipboardLost(
FXObject*,FXSelector,
void*);
304 long onClipboardGained(
FXObject*,FXSelector,
void*);
305 long onClipboardRequest(
FXObject*,FXSelector,
void*);
306 long onCmdSetTip(
FXObject*,FXSelector,
void*);
307 long onCmdGetTip(
FXObject*,FXSelector,
void*);
308 long onCmdSetHelp(
FXObject*,FXSelector,
void*);
309 long onCmdGetHelp(
FXObject*,FXSelector,
void*);
310 long onQueryTip(
FXObject*,FXSelector,
void*);
311 long onQueryHelp(
FXObject*,FXSelector,
void*);
312 long onUpdIsEditable(
FXObject*,FXSelector,
void*);
313 long onUpdHaveSelection(
FXObject*,FXSelector,
void*);
314 long onUpdHaveEditableSelection(
FXObject*,FXSelector,
void*);
315 long onIMEStart(
FXObject*,FXSelector,
void*);
316 long onTipTimer(
FXObject*,FXSelector,
void*);
319 long onCmdSetStringValue(
FXObject*,FXSelector,
void*);
320 long onCmdGetStringValue(
FXObject*,FXSelector,
void*);
323 long onCmdCursorTop(
FXObject*,FXSelector,
void*);
324 long onCmdCursorBottom(
FXObject*,FXSelector,
void*);
325 long onCmdCursorHome(
FXObject*,FXSelector,
void*);
326 long onCmdCursorEnd(
FXObject*,FXSelector,
void*);
327 long onCmdCursorRight(
FXObject*,FXSelector,
void*);
328 long onCmdCursorLeft(
FXObject*,FXSelector,
void*);
329 long onCmdCursorUp(
FXObject*,FXSelector,
void*);
330 long onCmdCursorDown(
FXObject*,FXSelector,
void*);
331 long onCmdCursorPageUp(
FXObject*,FXSelector,
void*);
332 long onCmdCursorPageDown(
FXObject*,FXSelector,
void*);
333 long onCmdCursorWordLeft(
FXObject*,FXSelector,
void*);
334 long onCmdCursorWordRight(
FXObject*,FXSelector,
void*);
337 long onCmdCursorShiftTop(
FXObject*,FXSelector,
void*);
338 long onCmdCursorShiftBottom(
FXObject*,FXSelector,
void*);
339 long onCmdCursorShiftHome(
FXObject*,FXSelector,
void*);
340 long onCmdCursorShiftEnd(
FXObject*,FXSelector,
void*);
341 long onCmdCursorShiftRight(
FXObject*,FXSelector,
void*);
342 long onCmdCursorShiftLeft(
FXObject*,FXSelector,
void*);
343 long onCmdCursorShiftUp(
FXObject*,FXSelector,
void*);
344 long onCmdCursorShiftDown(
FXObject*,FXSelector,
void*);
345 long onCmdCursorShiftPageUp(
FXObject*,FXSelector,
void*);
346 long onCmdCursorShiftPageDown(
FXObject*,FXSelector,
void*);
347 long onCmdCursorShiftWordLeft(
FXObject*,FXSelector,
void*);
348 long onCmdCursorShiftWordRight(
FXObject*,FXSelector,
void*);
351 long onCmdCursorAltUp(
FXObject*,FXSelector,
void*);
352 long onCmdCursorAltDown(
FXObject*,FXSelector,
void*);
353 long onCmdCursorAltLeft(
FXObject*,FXSelector,
void*);
354 long onCmdCursorAltRight(
FXObject*,FXSelector,
void*);
357 long onCmdScrollUp(
FXObject*,FXSelector,
void*);
358 long onCmdScrollDown(
FXObject*,FXSelector,
void*);
359 long onCmdScrollTop(
FXObject*,FXSelector,
void*);
360 long onCmdScrollBottom(
FXObject*,FXSelector,
void*);
361 long onCmdScrollCenter(
FXObject*,FXSelector,
void*);
364 long onCmdInsertString(
FXObject*,FXSelector,
void*);
365 long onCmdInsertNewline(
FXObject*,FXSelector,
void*);
366 long onCmdInsertNewlineOnly(
FXObject*,FXSelector,
void*);
367 long onCmdInsertNewlineIndent(
FXObject*,FXSelector,
void*);
368 long onCmdInsertTab(
FXObject*,FXSelector,
void*);
369 long onCmdInsertHardTab(
FXObject*,FXSelector,
void*);
370 long onCmdInsertSoftTab(
FXObject*,FXSelector,
void*);
373 long onCmdCutSel(
FXObject*,FXSelector,
void*);
374 long onCmdCopySel(
FXObject*,FXSelector,
void*);
375 long onCmdPasteSel(
FXObject*,FXSelector,
void*);
376 long onCmdPasteMiddle(
FXObject*,FXSelector,
void*);
377 long onCmdDeleteSel(
FXObject*,FXSelector,
void*);
378 long onCmdSelectChar(
FXObject*,FXSelector,
void*);
379 long onCmdSelectWord(
FXObject*,FXSelector,
void*);
380 long onCmdSelectLine(
FXObject*,FXSelector,
void*);
381 long onCmdSelectMatching(
FXObject*,FXSelector,
void*);
382 long onCmdSelectEnclosing(
FXObject*,FXSelector,
void*);
383 long onCmdSelectAll(
FXObject*,FXSelector,
void*);
384 long onCmdDeselectAll(
FXObject*,FXSelector,
void*);
387 long onCmdBackspaceChar(
FXObject*,FXSelector,
void*);
388 long onCmdBackspaceWord(
FXObject*,FXSelector,
void*);
389 long onCmdBackspaceBol(
FXObject*,FXSelector,
void*);
390 long onCmdDeleteChar(
FXObject*,FXSelector,
void*);
391 long onCmdDeleteWord(
FXObject*,FXSelector,
void*);
392 long onCmdDeleteEol(
FXObject*,FXSelector,
void*);
393 long onCmdDeleteAll(
FXObject*,FXSelector,
void*);
394 long onCmdDeleteLine(
FXObject*,FXSelector,
void*);
397 long onCmdShiftText(
FXObject*,FXSelector,
void*);
398 long onCmdChangeCase(
FXObject*,FXSelector,
void*);
399 long onCmdCopyLine(
FXObject*,FXSelector,
void*);
400 long onCmdMoveLineUp(
FXObject*,FXSelector,
void*);
401 long onCmdMoveLineDown(
FXObject*,FXSelector,
void*);
402 long onCmdJoinLines(
FXObject*,FXSelector,
void*);
403 long onCmdBlockBeg(
FXObject*,FXSelector,
void*);
404 long onCmdBlockEnd(
FXObject*,FXSelector,
void*);
405 long onCmdGotoMatching(
FXObject*,FXSelector,
void*);
406 long onCmdCursorPos(
FXObject*,FXSelector,
void*);
407 long onUpdCursorPos(
FXObject*,FXSelector,
void*);
408 long onCmdCursorRow(
FXObject*,FXSelector,
void*);
409 long onUpdCursorRow(
FXObject*,FXSelector,
void*);
410 long onCmdCursorColumn(
FXObject*,FXSelector,
void*);
411 long onUpdCursorColumn(
FXObject*,FXSelector,
void*);
412 long onCmdToggleEditable(
FXObject*,FXSelector,
void*);
413 long onUpdToggleEditable(
FXObject*,FXSelector,
void*);
414 long onCmdToggleOverstrike(
FXObject*,FXSelector,
void*);
415 long onUpdToggleOverstrike(
FXObject*,FXSelector,
void*);
416 long onUpdTextRows(
FXObject*,FXSelector,
void*);
417 long onUpdTextSize(
FXObject*,FXSelector,
void*);
424 STYLE_SELECTED = 0x0200,
425 STYLE_CONTROL = 0x0400,
426 STYLE_HILITE = 0x0800,
427 STYLE_ACTIVE = 0x1000,
428 STYLE_INSERT = 0x2000
433 STYLE_UNDERLINE = 0x0001,
434 STYLE_STRIKEOUT = 0x0002,
448 static const FXchar textDelimiters[];
452 ID_CURSOR_TOP=FXScrollArea::ID_LAST,
463 ID_CURSOR_WORD_RIGHT,
465 ID_CURSOR_SHIFT_BOTTOM,
466 ID_CURSOR_SHIFT_HOME,
469 ID_CURSOR_SHIFT_DOWN,
470 ID_CURSOR_SHIFT_LEFT,
471 ID_CURSOR_SHIFT_RIGHT,
472 ID_CURSOR_SHIFT_PAGEUP,
473 ID_CURSOR_SHIFT_PAGEDOWN,
474 ID_CURSOR_SHIFT_WORD_LEFT,
475 ID_CURSOR_SHIFT_WORD_RIGHT,
487 ID_INSERT_NEWLINE_ONLY,
488 ID_INSERT_NEWLINE_INDENT,
516 ID_TOGGLE_OVERSTRIKE,
549 FXText(
FXComposite *p,
FXObject* tgt=
nullptr,FXSelector sel=0,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=3,FXint pr=3,FXint pt=2,FXint pb=2);
552 virtual void create();
555 virtual void detach();
558 virtual FXint getContentWidth();
561 virtual FXint getContentHeight();
564 virtual FXint getVisibleX()
const;
567 virtual FXint getVisibleY()
const;
570 virtual FXint getVisibleWidth()
const;
573 virtual FXint getVisibleHeight()
const;
576 virtual FXint getDefaultWidth();
579 virtual FXint getDefaultHeight();
582 virtual void layout();
585 virtual void enable();
588 virtual void disable();
591 virtual void recalc();
594 virtual FXbool canFocus()
const;
597 virtual void setFocus();
600 virtual void killFocus();
609 void setEditable(FXbool edit=
true);
612 FXbool isEditable()
const;
615 void setOverstrike(FXbool over=
true);
618 FXbool isOverstrike()
const;
627 FXint getByte(FXint pos)
const;
630 FXint getStyle(FXint pos)
const;
633 FXint getCharLen(FXint pos)
const;
636 FXwchar getChar(FXint pos)
const;
639 FXint dec(FXint pos)
const;
642 FXint inc(FXint pos)
const;
645 FXint lineStart(FXint pos)
const;
648 FXint lineEnd(FXint pos)
const;
651 FXint nextLine(FXint pos,FXint nl=1)
const;
654 FXint prevLine(FXint pos,FXint nl=1)
const;
657 FXint rowStart(FXint pos)
const;
660 FXint rowEnd(FXint pos)
const;
663 FXint nextRow(FXint pos,FXint nr=1)
const;
666 FXint prevRow(FXint pos,FXint nr=1)
const;
669 FXint leftWord(FXint pos)
const;
672 FXint rightWord(FXint pos)
const;
675 FXint wordStart(FXint pos)
const;
678 FXint wordEnd(FXint pos)
const;
681 FXint validPos(FXint pos)
const;
687 FXint countCols(FXint start,FXint end)
const;
693 FXint countRows(FXint start,FXint end)
const;
699 FXint countLines(FXint start,FXint end)
const;
702 virtual FXint setText(
const FXchar* text,FXint num,FXbool notify=
false);
703 virtual FXint setText(
const FXString& text,FXbool notify=
false);
706 virtual FXint setStyledText(
const FXchar* text,FXint num,FXint style=0,FXbool notify=
false);
707 virtual FXint setStyledText(
const FXString& text,FXint style=0,FXbool notify=
false);
710 virtual FXint changeStyle(FXint pos,FXint num,FXint style);
713 virtual FXint changeStyle(FXint pos,
const FXchar* style,FXint num);
714 virtual FXint changeStyle(FXint pos,
const FXString& style);
717 virtual FXint appendText(
const FXchar *text,FXint num,FXbool notify=
false);
718 virtual FXint appendText(
const FXString& text,FXbool notify=
false);
721 virtual FXint appendStyledText(
const FXchar *text,FXint num,FXint style=0,FXbool notify=
false);
722 virtual FXint appendStyledText(
const FXString& text,FXint style=0,FXbool notify=
false);
725 virtual FXint replaceText(FXint pos,FXint del,
const FXchar *text,FXint ins,FXbool notify=
false);
726 virtual FXint replaceText(FXint pos,FXint del,
const FXString& text,FXbool notify=
false);
729 virtual FXint replaceStyledText(FXint pos,FXint del,
const FXchar *text,FXint ins,FXint style=0,FXbool notify=
false);
730 virtual FXint replaceStyledText(FXint pos,FXint del,
const FXString& text,FXint style=0,FXbool notify=
false);
733 virtual FXint replaceTextBlock(FXint startpos,FXint endpos,FXint startcol,FXint endcol,
const FXchar *text,FXint num,FXbool notify=
false);
734 virtual FXint replaceTextBlock(FXint startpos,FXint endpos,FXint startcol,FXint endcol,
const FXString& text,FXbool notify=
false);
737 virtual FXint replaceStyledTextBlock(FXint startpos,FXint endpos,FXint startcol,FXint endcol,
const FXchar *text,FXint num,FXint style=0,FXbool notify=
false);
738 virtual FXint replaceStyledTextBlock(FXint startpos,FXint endpos,FXint startcol,FXint endcol,
const FXString& text,FXint style=0,FXbool notify=
false);
741 virtual FXint insertText(FXint pos,
const FXchar *text,FXint num,FXbool notify=
false);
742 virtual FXint insertText(FXint pos,
const FXString& text,FXbool notify=
false);
745 virtual FXint insertStyledText(FXint pos,
const FXchar *text,FXint num,FXint style=0,FXbool notify=
false);
746 virtual FXint insertStyledText(FXint pos,
const FXString& text,FXint style=0,FXbool notify=
false);
749 virtual FXint insertTextBlock(FXint startpos,FXint endpos,FXint startcol,
const FXchar *text,FXint num,FXbool notify=
false);
750 virtual FXint insertTextBlock(FXint startpos,FXint endpos,FXint startcol,
const FXString& text,FXbool notify=
false);
753 virtual FXint insertStyledTextBlock(FXint startpos,FXint endpos,FXint startcol,
const FXchar *text,FXint num,FXint style=0,FXbool notify=
false);
754 virtual FXint insertStyledTextBlock(FXint startpos,FXint endpos,FXint startcol,
const FXString& text,FXint style=0,FXbool notify=
false);
757 virtual FXint overstrikeTextBlock(FXint startpos,FXint endpos,FXint startcol,
const FXchar *text,FXint num,FXbool notify=
false);
758 virtual FXint overstrikeTextBlock(FXint startpos,FXint endpos,FXint startcol,
const FXString& text,FXbool notify=
false);
761 virtual FXint overstrikeStyledTextBlock(FXint startpos,FXint endpos,FXint startcol,
const FXchar *text,FXint num,FXint style=0,FXbool notify=
false);
762 virtual FXint overstrikeStyledTextBlock(FXint startpos,FXint endpos,FXint startcol,
const FXString& text,FXint style=0,FXbool notify=
false);
769 void getText(FXchar* text,FXint num)
const;
775 void extractText(FXchar *text,FXint pos,FXint num)
const;
778 void extractText(
FXString& text,FXint pos,FXint num)
const;
781 FXString extractText(FXint pos,FXint num)
const;
784 void extractStyle(FXchar *style,FXint pos,FXint num)
const;
787 void extractStyle(
FXString& style,FXint pos,FXint num)
const;
790 FXString extractStyle(FXint pos,FXint num)
const;
793 void extractTextBlock(
FXString& text,FXint startpos,FXint endpos,FXint startcol,FXint endcol)
const;
796 FXString extractTextBlock(FXint startpos,FXint endpos,FXint startcol,FXint endcol)
const;
800 virtual FXint removeText(FXint pos,FXint num,FXbool notify=
false);
803 virtual FXint removeTextBlock(FXint startpos,FXint endpos,FXint startcol,FXint endcol,FXbool notify=
false);
806 virtual FXint clearText(FXbool notify=
false);
810 virtual FXbool selectAll(FXbool notify=
false);
813 virtual FXbool setSelection(FXint pos,FXint len,FXbool notify=
false);
816 virtual FXbool extendSelection(FXint pos,FXuint sel=SelectChars,FXbool notify=
false);
819 virtual FXbool setBlockSelection(FXint trow,FXint lcol,FXint brow,FXint rcol,FXbool notify=
false);
822 virtual FXbool extendBlockSelection(FXint row,FXint col,FXbool notify=
false);
825 virtual FXbool setSelection(FXint spos,FXint epos,FXint scol,FXint ecol,FXbool notify=
false);
828 virtual FXbool killSelection(FXbool notify=
false);
832 FXbool isPosSelected(FXint pos)
const;
835 FXbool isPosSelected(FXint pos,FXint col)
const;
851 FXbool copySelection();
854 FXbool cutSelection(FXbool notify=
false);
857 FXbool deleteSelection(FXbool notify=
false);
860 FXbool pasteSelection(FXbool notify=
false);
863 FXbool pasteClipboard(FXbool notify=
false);
866 FXbool replaceSelection(
const FXString& text,FXbool notify=
false);
872 FXbool setHighlight(FXint start,FXint len);
875 FXbool killHighlight();
879 void setTopLine(FXint pos);
882 FXint getTopLine()
const;
885 void setBottomLine(FXint pos);
888 FXint getBottomLine()
const;
891 void setCenterLine(FXint pos);
894 FXbool isPosVisible(FXint pos)
const;
897 void makePositionVisible(FXint pos);
901 FXint getPosAt(FXint x,FXint y)
const;
904 FXint getPosContaining(FXint x,FXint y)
const;
907 FXint getXOfPos(FXint pos)
const;
910 FXint getYOfPos(FXint pos)
const;
920 FXint getRowColumnAt(FXint x,FXint y,FXint& row,FXint& col)
const;
923 FXint getXOfRowColumn(FXint row,FXint col)
const;
926 FXint getYOfRowColumn(FXint row,FXint col)
const;
930 virtual void setCursorPos(FXint pos,FXbool notify=
false);
936 void setCursorRowColumn(FXint row,FXint col,FXbool notify=
false);
939 void setCursorRow(FXint row,FXbool notify=
false);
945 void setCursorColumn(FXint col,FXbool notify=
false);
952 void setAnchorPos(FXint pos);
958 void setAnchorRowColumn(FXint row,FXint col);
968 void moveCursor(FXint pos,FXbool notify=
false);
971 void moveCursorRowColumn(FXint row,FXint col,FXbool notify=
false);
974 void moveCursorAndSelect(FXint pos,FXuint sel,FXbool notify=
false);
977 void moveCursorRowColumnAndSelect(FXint row,FXint col,FXbool notify=
false);
992 FXbool findText(
const FXString&
string,FXint* beg=
nullptr,FXint* end=
nullptr,FXint start=0,FXuint flags=SEARCH_FORWARD|SEARCH_WRAP|SEARCH_EXACT,FXint npar=1);
996 void setTextStyle(FXuint style);
999 FXuint getTextStyle()
const;
1002 void setFont(
FXFont* fnt);
1008 void setVisibleRows(FXint rows);
1014 void setVisibleColumns(FXint cols);
1020 void setMarginTop(FXint pt);
1026 void setMarginBottom(FXint pb);
1032 void setMarginLeft(FXint pl);
1038 void setMarginRight(FXint pr);
1047 void setBarColumns(FXint cols);
1050 void setWrapColumns(FXint cols);
1056 void setTabColumns(FXint cols);
1062 void setTextColor(FXColor clr);
1068 void setSelBackColor(FXColor clr);
1074 void setSelTextColor(FXColor clr);
1080 void setHiliteTextColor(FXColor clr);
1086 void setHiliteBackColor(FXColor clr);
1092 void setActiveBackColor(FXColor clr);
1098 void setCursorColor(FXColor clr);
1104 void setNumberColor(FXColor clr);
1110 void setBarColor(FXColor clr);
1116 FXbool setStyled(FXbool styled=
true);
1165 virtual void save(
FXStream& store)
const;
1168 virtual void load(
FXStream& store);
The text widget provides a multi-line text editing control.
Definition: FXText.h:155
const FXchar * del
Number characters inserted at position.
Definition: FXText.h:67
FXint getSelStartColumn() const
Return selection start column.
Definition: FXText.h:844
void setHelpText(const FXString &text)
Set help text.
Definition: FXText.h:1153
FXbool isModified() const
Return true if text was modified.
Definition: FXText.h:606
FXColor selectBackColor
Selected text foreground color.
Definition: FXText.h:49
FXint getSelEndColumn() const
Return selection end column.
Definition: FXText.h:847
FXint getVisibleRows() const
Return number of visible rows.
Definition: FXText.h:1011
FXint getSelEndPos() const
Return selection end position.
Definition: FXText.h:841
FXint getTabColumns() const
Return tab columns.
Definition: FXText.h:1059
FXColor normalBackColor
Normal text foreground color.
Definition: FXText.h:47
FXint getLength() const
Return length of buffer.
Definition: FXText.h:621
FXColor getBarColor() const
Return bar color.
Definition: FXText.h:1113
FXbool isStyled() const
Return true if style buffer.
Definition: FXText.h:1119
FXString getHelpText() const
Return help text.
Definition: FXText.h:1156
FXint getSelStartPos() const
Return selection start position.
Definition: FXText.h:838
FXint getCursorRow() const
Return cursor row.
Definition: FXText.h:942
FXint getMarginBottom() const
Return bottom margin.
Definition: FXText.h:1029
void setTipText(const FXString &text)
Set the tool tip message for this text widget.
Definition: FXText.h:1159
Highlight style entry.
Definition: FXText.h:45
Base composite.
Definition: FXComposite.h:32
FXint ndel
Position in buffer.
Definition: FXText.h:65
FXint getWrapColumns() const
Return wrap columns.
Definition: FXText.h:1053
const FXchar * ins
Text deleted at position.
Definition: FXText.h:68
FXColor getSelBackColor() const
Return selected background color.
Definition: FXText.h:1071
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
const FXchar * getDelimiters() const
Return word delimiters.
Definition: FXText.h:1150
FXColor getTextColor() const
Return text color.
Definition: FXText.h:1065
FXColor getCursorColor() const
Return cursor color.
Definition: FXText.h:1101
FXint getMarginTop() const
Return top margin.
Definition: FXText.h:1023
FXColor hiliteForeColor
Selected text background color.
Definition: FXText.h:50
Definition: FX4Splitter.h:28
FXColor getSelTextColor() const
Return selected text color.
Definition: FXText.h:1077
FXHiliteStyle * getHiliteStyles() const
Return current value of the style table.
Definition: FXText.h:1131
FXint getMarginLeft() const
Return left margin.
Definition: FXText.h:1035
FXColor getHiliteTextColor() const
Return highlighted text color.
Definition: FXText.h:1083
void setModified(FXbool mod=true)
Set modified flag.
Definition: FXText.h:603
FXint getAnchorColumn() const
Return anchor row.
Definition: FXText.h:964
FXint endpos
Start of selection (begin of first line if block-select)
Definition: FXText.h:79
FXFont * getFont() const
Return text font.
Definition: FXText.h:1005
void setDelimiters(const FXchar *delims=textDelimiters)
Change delimiters of words.
Definition: FXText.h:1147
FXint endcol
Start column, if block-select (actually, indent)
Definition: FXText.h:81
FXint getVisibleColumns() const
Return number of visible columns.
Definition: FXText.h:1017
Text selection data.
Definition: FXText.h:77
Text mutation callback data passed with the SEL_INSERTED, SEL_REPLACED, and SEL_DELETED messages; bot...
Definition: FXText.h:63
FXColor getActiveBackColor() const
Return active background color.
Definition: FXText.h:1095
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:134
Window Device Context.
Definition: FXDCWindow.h:48
FXint getCursorPos() const
Return the cursor position.
Definition: FXText.h:933
FXint getAnchorRow() const
Return anchor row.
Definition: FXText.h:961
FXint startcol
End of selection (start of line past last if block-select)
Definition: FXText.h:80
FXint getCursorColumn() const
Return cursor row, i.e. indent position.
Definition: FXText.h:948
FXTime getHiliteMatchTime() const
Return brace and parenthesis match highlighting time, in nanoseconds.
Definition: FXText.h:1144
FXint getNumRows() const
Return number of rows in buffer.
Definition: FXText.h:624
FXString getTipText() const
Get the tool tip message for this text widget.
Definition: FXText.h:1162
FXColor selectForeColor
Normal text background color.
Definition: FXText.h:48
FXColor activeBackColor
Highlight text background color.
Definition: FXText.h:52
FXint nins
Number characters deleted at position.
Definition: FXText.h:66
FXint getAnchorPos() const
Return the anchor position.
Definition: FXText.h:955
void setHiliteMatchTime(FXTime t)
Change brace and parenthesis match highlighting time, in nanoseconds.
Definition: FXText.h:1141
FXint getMarginRight() const
Return right margin.
Definition: FXText.h:1041
FXColor getNumberColor() const
Return line number color.
Definition: FXText.h:1107
Font class.
Definition: FXFont.h:137
FXint getBarColumns() const
Return number of columns used for line numbers.
Definition: FXText.h:1044
FXuint style
Active text background color.
Definition: FXText.h:53
FXColor getHiliteBackColor() const
Return highlighted background color.
Definition: FXText.h:1089
FXColor hiliteBackColor
Highlight text foreground color.
Definition: FXText.h:51
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42