On Fri, Nov 23, 2012 at 10:38 AM, Staffan Tylen <staffan.ty...@gmail.com>wrote:
> If I read the documentation for TV insert correctly, there is no need to
> use any commas as placeholders when parameters are left out, is this
> correct?
No, that is not correct. If you want to specify the selected image
argument, it is the 5th argument. All arguments are optional, so you can
omit the first 4 arguments, but the selected image argument still has to be
the 5th argument:
insert( , , , , 7)
would insert an item with no text for a label as the last child of the root
item with no non-selected icon. The selected image icon for the inserted
item would be at index 7 of the image list.
Each argument has to be at its proper position in the the argument list.
>>--insert(--+----------+-+---------+-+-------+-+-------+-+----------+--------->
+--parent--+ +-,-after-+ +-,-txt-+ +-,-img-+ +-,-selImg-+
>------------+---------+-+------------+-+------------+-------------------------><
+-,-state-+ +-,-children-+ +-,-userData-+
The way to read the above is that each argument that is below below the
line is optional. But the argument position is fixed. selImg is the 5th
argument. That doesn't change if you omit an argument.
--
Mark Miesfeld
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users