Menu.InsertItem Method

Inserts an item into the menu before a certain position; the new item will be at the given position and all next items pushed forward.

bool InsertItem(int position, const char[] info, const char[] display, int style)

Parameters

int position

Position, starting from 0.

const char[] info

Item information string.

const char[] display

Default item display string.

int style

Drawing style flags. Anything other than DEFAULT or DISABLED will be completely ignored when paginating.

Return Value

True on success, false on failure.

Errors

Invalid menu position.