Rich Text Box Control...

Just starting out? Need help? Post your questions and find answers here.
LJ
Enthusiast
Enthusiast
Posts: 177
Joined: Wed Apr 30, 2003 4:00 pm

Rich Text Box Control...

Post 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.
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Yep.
LJ
Enthusiast
Enthusiast
Posts: 177
Joined: Wed Apr 30, 2003 4:00 pm

Post by LJ »

:D Awesome! Then I won't post it in the Feature Request forum. Thanks Fred.
Post Reply