Panel Class

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

Methods 7

Name Description
CanDrawFlags

Returns whether or not the given drawing flags are supported by the menu style.

DrawItem

Draws an item on a panel. If the item takes up a slot, the position is returned.

DrawText

Draws a raw line of text on a panel, without any markup other than a newline.

Panel

Constructor for a new Panel.

Send

Sends 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.

SetKeys

Sets the selectable key map of a panel. This is not supported by all styles (only by Radio, as of this writing).

SetTitle

Sets the panel's title.

Properties 3

Name Type Description
TextRemainingint

Returns the amount of text the menu can still hold. If this is limit is reached or overflowed, the text is silently truncated.

CurrentKeyint

Returns or sets the current key position, starting at 1. This cannot be used to traverse backwards.

StyleHandle

Returns the panel's style. Style handles are global and cannot be closed.