Return to Main Docs Page

vgui.Button

NewerClient.png Creates vgui button.

Button vgui.Button( Panel parent, string panelName, string text, Panel pActionSignalTarget, string pCmd )
               

Arguments:


  • 1) Panel parent
  • Parent of the button.

  • 2) string panelName
  • Name of the button.

  • 3) string text
  • Text on the button.

  • 4) Panel pActionSignalTarget
  • If not NULL, command from click will be sended to this panel.

  • 5) string pCmd
  • Command name.

Returns: