DButton.GetDrawBorder

From GMod Wiki

Jump to: navigation, search
Function
Syntax DButton:GetDrawBorder( )
Description:
returns the border state
Returns: Boolean
In Object: DButton
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DButton.GetDrawBorder]DButton.GetDrawBorder [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