Panel < Handle

Last Updated2016-01-22
Created At2014-12-13

Panels are used for drawing raw menus without any extra helper functions. Handles must be closed via delete or CloseHandle().

Methods7
SymbolDescription
CanDrawFlagsReturns whether or not the given drawing flags are supported by the menu style.
DrawItemDraws an item on a panel. If the item takes up a slot, the position is returned.
DrawTextDraws a raw line of text on a panel, without any markup other than a newline.
PanelConstructor for a new Panel.
SendSends a panel to a client. Unlike full menus, the handler function will only receive the following actions, both of which will have null for a menu, and the client as param1. MenuAction_Select (param2 will be the key pressed) MenuAction_Cancel (param2 will be the reason) Also, if the menu fails to display, no callbacks will be called.
SetKeysSets the selectable key map of a panel. This is not supported by all styles (only by Radio, as of this writing).
SetTitleSets the panel's title.
Properties3
SymbolTypeDescription
CurrentKeyintReturns or sets the current key position, starting at 1. This cannot be used to traverse backwards.
StyleHandleReturns the panel's style. Style handles are global and cannot be closed.
TextRemainingintReturns the amount of text the menu can still hold. If this is limit is reached or overflowed, the text is silently truncated. Radio menus: Currently 511 characters (512 bytes). Valve menus: Currently -1 (no meaning).