Page 1 of 1

Rich Text Box Control...

Posted: Sat May 17, 2003 6:21 pm
by LJ
BlitzPlus just released the following commands for their TextArea gadget (Rich Text Box control). Are equivalent commands planned in a future version of PureBasic?
Command
FormatTextAreaText textarea,red,green,blue,flags[,pos,len,units]
Parameters
textarea - A textarea gadget handle
red,green,blue - color components in the range 0 to 255.
flags - bold/italic flags
pos,len - Starting position and length of text to format. These default to the entire text.
units - Units specifier: 1=characters (the default), 2=lines
Description
Possible values for flags are:
1: bold
2: italic
3: bold+italic

Command
SetTextAreaText textarea,text$[,pos,len,units]
Parameters
textarea - A textarea gadget handle
text$ - Replacement text for the gadget
pos,len - Starting position and length of text to replace. These default to the entire text.
units - Units specifier: 1=characters (the default), 2=lines

Command
TextAreaCursor( textarea[,units] )
Parameters
textarea - A textarea gadget handle
units - Units specifier: 1=characters (the default), 2=lines
Description
Returns the character or line index of the cursor.

Command
TextAreaSelLen( textarea[,units] )
Parameters
textarea - A textarea gadget handle
units - Units specifier: 1=characters (the default), 2=lines
Description
Returns the length of the current selection in either characters or lines.

Command
TextAreaLen( textarea[,units] )
Parameters
textarea - A textarea gadget handle
units - Units specifier: 1=characters (the default), 2=lines
Description
Returns the number of characters or lines in a textarea gadget.

Posted: Sat May 17, 2003 7:18 pm
by Fred
Yep.

Posted: Sat May 17, 2003 9:03 pm
by LJ
:D Awesome! Then I won't post it in the Feature Request forum. Thanks Fred.