Core Function GUIRichTextBox
From Sputnik Wiki
GUIRichTextBox( <richtextbox> )
Contents |
Description
Properties & Functions specifically for RichTextBox
Parameters
richtextbox
The RichTextBox GUI object to use.
Functions
Note - Anything is not listed here will most likely be be found in GUIGetProp and GUISetProp or GUIPropInvoke etc this is because a lot of properties and stuff is actually generic for many controls.
WordWrap
Turn wordwrap on or off or get the current state
GUIRichTextBox($MyBox, "WordWrap", false); # Turn off GUIRichTextBox($MyBox, "WordWrap", true); # Turn on $value = GUIRichTextBox($MyBox, "WordWrap") # Get current
ScrollBars
Get/Set the scroll bars type
Available constants for use
@RTBScroll_None @RTBScroll_Horizontal @RTBScroll_Vertical @RTBScroll_Both @RTBScroll_ForcedHorizontal @RTBScroll_ForcedVertical @RTBScroll_ForcedBoth
Example
GUIRichTextBox($TextBox, "ScrollBars", @RTBScroll_ForcedBoth); # Set $value = GUIRichTextBox($TextBox, "ScrollBars"); # Get
Example
Go see GUICreate( "RichTextBox" ) for example.