DrawPanelItem

Last Updated2007-05-14
Created At2007-05-14

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

native int DrawPanelItem(Handle panel, const char[] text, int style = 0)

Parameters

Handle panel
A MenuPanel Handle.
const char[] text
Display text to use. If not a raw line, the style may automatically add color markup. No numbering or newlines are needed.
int style
ITEMDRAW style flags.

Return Value

int A slot position, or 0 if item was a rawline or could not be drawn.

Error

Invalid Handle.