Core Function GUIRichTextBox
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> GUIRichTextBox( <richtextbox> ) </pre> === Description === Properties & Functions specifically for RichTextBox === Parameters === ==== richtextbox ==== The RichTextBox...") |
(→WordWrap) |
||
Line 25: | Line 25: | ||
GUIRichTextBox($MyBox, "WordWrap", true); # Turn on | GUIRichTextBox($MyBox, "WordWrap", true); # Turn on | ||
$value = GUIRichTextBox($MyBox, "WordWrap") # Get current | $value = GUIRichTextBox($MyBox, "WordWrap") # Get current | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | ==== ScrollBars ==== | ||
+ | |||
+ | Get/Set the scroll bars type | ||
+ | |||
+ | Available constants for use | ||
+ | <syntaxhighlight lang="sputnik"> | ||
+ | @RTBScroll_None | ||
+ | @RTBScroll_Horizontal | ||
+ | @RTBScroll_Vertical | ||
+ | @RTBScroll_Both | ||
+ | @RTBScroll_ForcedHorizontal | ||
+ | @RTBScroll_ForcedVertical | ||
+ | @RTBScroll_ForcedBoth | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | Example | ||
+ | |||
+ | <syntaxhighlight lang="sputnik"> | ||
+ | GUIRichTextBox($TextBox, "ScrollBars", @RTBScroll_ForcedBoth); # Set | ||
+ | $value = GUIRichTextBox($TextBox, "ScrollBars"); # Get | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 01:57, 5 October 2013
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.