Add Checkbox to popup menu at index

Questions, tips and tricks and techniques for scripting in Servoy

Add Checkbox to popup menu at index

Postby irennie » Thu Feb 17, 2011 12:09 pm

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], [align])
Add the Checkbox at the selected index (starting at 0) or add it at the end (empty).


I think I am missing something simple but I can't see where you specify the index in the addCheckBox method?
Iain Rennie
Asset Guardian Solutions Limited
http://www.assetguardian.com
User avatar
irennie
 
Posts: 27
Joined: Fri Jun 11, 2010 3:24 pm
Location: Livingston, UK

Re: Add Checkbox to popup menu at index

Postby rgansevles » Wed Mar 02, 2011 2:36 pm

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
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL


Return to Methods

Who is online

Users browsing this forum: No registered users and 11 guests

cron