P.RichText.GotoTextEnd

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:GotoTextEnd( )
Description:
Goes to the bottom of the element.
Returns: nil
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=P.RichText.GotoTextEnd]P.RichText.GotoTextEnd [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGoes to the bottom of the given RichText control
Used onNewerClient.png
Code
local Text=vgui.Create( 'RichText' )
for i = 1,100 do Text:AppendText( "Long text\n" ) end
Text:GotoTextEnd()
 
OutputNone
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox