Garry's Mod Wiki

Panel:GWEN_SetDock

  Panel:GWEN_SetDock( string dockState )

Description

This is used internally - although you're able to use it you probably shouldn't.

Used by Panel:ApplyGWEN to apply the Dock property to a panel object. This calls Panel:Dock.

Arguments

1 string dockState
The dock mode to pass to the panel's Dock method. This reads a string and applies the approriate DOCK enum.
  • Right: Dock right.
  • Left: Dock left.
  • Bottom: Dock at the bottom.
  • Top: Dock at the top.
  • Fill: Fill the parent panel.