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
Panel

Constructor for a new Panel.

SetTitle

Sets the panel's title.

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.

CanDrawFlags

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

SetKeys

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

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.

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.