Garry's Mod Wiki

Panel:StartBoxSelection

  Panel:StartBoxSelection()

Description

Begins a box selection, enables mouse capture for the panel object, and sets the start point of the selection box to the mouse cursor's position, relative to this object. For this to work, either the object or its parent must be enabled as a selection canvas. This is set using Panel:SetSelectionCanvas.