DFrame.ShowCloseButton

From GMod Wiki

Jump to: navigation, search
Function
Syntax DFrame:ShowCloseButton( Boolean show )
Description:
Enables whether the x button is shown or not.
Returns: nil
In Object: DFrame
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DFrame.ShowCloseButton]DFrame.ShowCloseButton [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionCreates a frame and disables the x close button.
Used onNewerClient.png
Code
 
myParent = vgui.Create("DFrame")
myParent:SetTall(480)
myParent:SetWide(640)
myParent:ShowCloseButton(false)--disables the x close button
myParent:Center()
myParent:MakePopup()
 
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox