DButton.SetDrawBorder

From GMod Wiki

Jump to: navigation, search
Function
Syntax DButton:SetDrawBorder( Boolean draw )
Description:
Switches on and off drawing of the buttons border.
Returns: nil
In Object: DButton
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DButton.SetDrawBorder]DButton.SetDrawBorder [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCreates a button with no border. When clicked the border will toggle between hidden and shown.
Used onNewerClient.png
Code
// myParent = a panel
myButton = vgui.Create("DButton", myParent)
myButton:SetText("Border!")
myButton.DoClick = function (myButton) myButton:SetDrawBorder( !myButton:GetDrawBorder() ) end
 
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox