Garry's Mod Wiki

Garry's Mod Wiki

  DTextEntry:SetHistoryEnabled( boolean enable )

Description

Enables or disables the history functionality of DTextEntry. This allows the player to scroll through history elements using up and down arrow keys.

See DTextEntry:AddHistory.

Arguments

1 boolean enable
Whether to enable history or not.

Example

A common example.

local textentry = vgui.Create("DTextEntry") textentry:SetHistoryEnabled(true) textentry.History = { "Message 1", "Message 2" }

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...