27 #ifndef FXSCROLLAREA_H
158 virtual void eraseCursorOverhang();
159 virtual void drawCursor(
FXuint state);
169 void movegap(
FXint pos);
170 void sizegap(
FXint sz);
188 void flashMatching();
194 STYLE_SELECTED = 0x0200,
195 STYLE_CONTROL = 0x0400,
196 STYLE_HILITE = 0x0800,
197 STYLE_ACTIVE = 0x1000
210 STYLE_UNDERLINE = 0x0001,
211 STYLE_STRIKEOUT = 0x0002,
215 FXText(
const FXText&);
216 FXText& operator=(
const FXText&);
221 long onLeftBtnPress(FXObject*,
FXSelector,
void*);
222 long onLeftBtnRelease(FXObject*,
FXSelector,
void*);
223 long onMiddleBtnPress(FXObject*,
FXSelector,
void*);
224 long onMiddleBtnRelease(FXObject*,
FXSelector,
void*);
225 long onRightBtnPress(FXObject*,
FXSelector,
void*);
226 long onRightBtnRelease(FXObject*,
FXSelector,
void*);
336 static const FXchar textDelimiters[];
350 ID_CURSOR_WORD_RIGHT,
351 ID_CURSOR_WORD_START,
392 ID_TOGGLE_OVERSTRIKE,
427 FXText(
FXComposite *p,
FXObject* tgt=
NULL,
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);
430 virtual void create();
433 virtual void detach();
436 virtual void layout();
439 virtual FXint getDefaultWidth();
442 virtual FXint getDefaultHeight();
445 virtual void enable();
448 virtual void disable();
451 virtual void recalc();
454 virtual FXint getContentWidth();
457 virtual FXint getContentHeight();
460 virtual bool canFocus()
const;
463 virtual void setFocus();
466 virtual void killFocus();
469 void setMarginTop(
FXint pt);
472 FXint getMarginTop()
const {
return margintop; }
475 void setMarginBottom(
FXint pb);
478 FXint getMarginBottom()
const {
return marginbottom; }
481 void setMarginLeft(
FXint pl);
484 FXint getMarginLeft()
const {
return marginleft; }
487 void setMarginRight(
FXint pr);
490 FXint getMarginRight()
const {
return marginright; }
493 FXint getWrapColumns()
const {
return wrapcolumns; }
496 void setWrapColumns(
FXint cols);
499 FXint getTabColumns()
const {
return tabcolumns; }
502 void setTabColumns(
FXint cols);
505 FXint getBarColumns()
const {
return barcolumns; }
508 void setBarColumns(
FXint cols);
511 FXbool isModified()
const {
return modified; }
514 void setModified(
FXbool mod=
TRUE){ modified=mod; }
520 FXbool isEditable()
const;
526 FXbool isOverstrike()
const;
532 FXbool isStyled()
const {
return (sbuffer!=
NULL); }
535 void setDelimiters(
const FXchar* delims=textDelimiters){ delimiters=delims; }
538 const FXchar* getDelimiters()
const {
return delimiters; }
541 void setFont(FXFont* fnt);
544 FXFont* getFont()
const {
return font; }
547 void setTextColor(
FXColor clr);
550 FXColor getTextColor()
const {
return textColor; }
553 void setSelBackColor(
FXColor clr);
556 FXColor getSelBackColor()
const {
return selbackColor; }
559 void setSelTextColor(
FXColor clr);
562 FXColor getSelTextColor()
const {
return seltextColor; }
565 void setHiliteTextColor(
FXColor clr);
568 FXColor getHiliteTextColor()
const {
return hilitetextColor; }
571 void setHiliteBackColor(
FXColor clr);
574 FXColor getHiliteBackColor()
const {
return hilitebackColor; }
577 void setActiveBackColor(
FXColor clr);
580 FXColor getActiveBackColor()
const {
return activebackColor; }
583 void setCursorColor(
FXColor clr);
586 FXColor getCursorColor()
const {
return cursorColor; }
589 void setNumberColor(
FXColor clr);
592 FXColor getNumberColor()
const {
return numberColor; }
598 FXColor getBarColor()
const {
return barColor; }
601 void setHelpText(
const FXString& text){ help=text; }
604 FXString getHelpText()
const {
return help; }
607 void setTipText(
const FXString& text){ tip=text; }
682 FXint getLength()
const {
return length; }
685 FXint getNumRows()
const {
return nrows; }
770 void setTopLine(
FXint pos);
773 FXint getTopLine()
const;
776 void setBottomLine(
FXint pos);
779 FXint getBottomLine()
const;
782 void setCenterLine(
FXint pos);
785 void setAnchorPos(
FXint pos);
788 FXint getAnchorPos()
const {
return anchorpos; }
797 FXint getCursorRow()
const {
return cursorrow; }
803 FXint getCursorColumn()
const {
return cursorcol; }
806 FXint getCursorPos()
const {
return cursorpos; }
809 FXint getSelStartPos()
const {
return selstartpos; }
812 FXint getSelEndPos()
const {
return selendpos; }
833 void makePositionVisible(
FXint pos);
836 void setTextStyle(
FXuint style);
839 FXuint getTextStyle()
const;
842 void setVisibleRows(
FXint rows);
845 FXint getVisibleRows()
const {
return vrows; }
848 void setVisibleColumns(
FXint cols);
851 FXint getVisibleColumns()
const {
return vcols; }
857 void setHiliteMatchTime(
FXuint t){ matchtime=t; }
862 FXuint getHiliteMatchTime()
const {
return matchtime; }
865 void setHiliteStyles(
const FXHiliteStyle* styles);
868 const FXHiliteStyle* getHiliteStyles()
const {
return hilitestyles; }
871 virtual void save(FXStream& store)
const;
874 virtual void load(FXStream& store);
The text widget supports editing of multiple lines of text.
Definition: FXText.h:105
Show active line.
Definition: FXText.h:45
Overstrike mode.
Definition: FXText.h:41
FXColor selectBackColor
Selected text foreground color.
Definition: FXText.h:68
Search forward (default)
Definition: fxdefs.h:370
char FXchar
Definition: fxdefs.h:387
FXColor normalBackColor
Normal text foreground color.
Definition: FXText.h:66
#define TRUE
Definition: fxdefs.h:32
Exact match (default)
Definition: fxdefs.h:374
Definition: FXWindow.h:241
unsigned int FXuint
Definition: fxdefs.h:396
FXuint FXSelector
Association key.
Definition: FXObject.h:53
Fixed wrap columns.
Definition: FXText.h:42
#define FXAPI
Definition: fxdefs.h:122
FXuchar FXbool
Definition: fxdefs.h:393
Highlight style entry.
Definition: FXText.h:64
Base composite.
Definition: FXComposite.h:35
FXint ndel
Position in buffer.
Definition: FXText.h:84
FXchar * ins
Number characters inserted at position.
Definition: FXText.h:86
#define NULL
Definition: fxdefs.h:41
FXuint FXColor
Definition: fxdefs.h:454
Insert spaces for tabs.
Definition: FXText.h:43
FXTextSelectionMode
Selection modes.
Definition: FXText.h:55
Wrap at word breaks.
Definition: FXText.h:40
FXColor hiliteForeColor
Selected text background color.
Definition: FXText.h:69
wchar_t FXwchar
Definition: fxdefs.h:411
int FXint
Definition: fxdefs.h:397
Text is NOT editable.
Definition: FXText.h:39
#define FALSE
Definition: fxdefs.h:35
FXColor normalForeColor
Definition: FXText.h:65
Text mutation callback data passed with the SEL_INSERTED, SEL_REPLACED, and SEL_DELETED messages; bot...
Definition: FXText.h:82
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:166
unsigned char FXuchar
Definition: fxdefs.h:392
Window Device Context.
Definition: FXDCWindow.h:52
Wrap around to start.
Definition: fxdefs.h:373
FXColor selectForeColor
Normal text background color.
Definition: FXText.h:67
FXColor activeBackColor
Highlight text background color.
Definition: FXText.h:71
FXchar * del
Text inserted at position.
Definition: FXText.h:87
FXint nins
Number characters deleted at position.
Definition: FXText.h:85
Autoindent.
Definition: FXText.h:44
FXint pos
Definition: FXText.h:83
Logging mode, keeping last line visible.
Definition: FXText.h:46
Font class.
Definition: FXFont.h:142
FXuint style
Active text background color.
Definition: FXText.h:72
FXColor hiliteBackColor
Highlight text foreground color.
Definition: FXText.h:70
#define FXDECLARE(classname)
Macro to set up class declaration.
Definition: FXObject.h:92
FXString provides essential string manipulation capabilities.
Definition: FXString.h:33