Panel.DrawItem Method

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

int DrawItem(const char[] text, int style)


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

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