Add Checkbox to popup menu at index

Hi,

I am trying to use the Window plugin to add a CheckBox to a popup menu at a specific index. The help and wiki state:

addCheckBox([name], [method], [icon], [mnemonic], [enabled], )
Add the Checkbox at the selected index (starting at 0) or add it at the end (empty).[/quote]

I think I am missing something simple but I can’t see where you specify the index in the addCheckBox method?

Iain,

addCheckbox has 2 modes, 1 with just a single argument (the index) or the set of arguments listed for the method.
This is a bit of legacy of 2 similar plugins merged into 1.

Rob