Panel.PostMessage

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:PostMessage( String messageType, String dataType, Var data )
Description:
Posts a message to VGUI. This is a direct way of instructing a panel to do something.
Returns: nil
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.PostMessage]Panel.PostMessage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionTell a slider to set itself to 30.
Used onNewerClient.png
Code
 
vgui.Create("")
slider:PostMessage("SetValue","f",30)
 
OutputFalse
DescriptionChange the title of frame.
Used onNewerClient.png
Code
frame:PostMessage( "SetTitle", "text", "cLabel Test" )
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox