Page 1 of 1

Bug in parm sep_itemlist of cmd popupmenu

Posted: 16 Jan 2013 14:23
by PeterH
In popupmenu both sep_itemlist and sep_item are documented "can have more than one char"
For sep_item this seems OK. (Tested with ' : ')
But for sep_itemlist it seems that only the first character is used. Tested with '^|^' and ' | '

Original part of script:

Code: Select all

 	$items	= "End 'Debug'    : End"
			. "^|^Repeat Display : Rep"
			. "^|^Reset  Display : Res"
			. "^|^-"
			. "^|^Call Demo      : Demo";
 	$next	= PopupMenu($items, 300, 150, , , , '^|^', ' : ', 'Cancel');
The result for '^|^' is bad, (each | is treated as a caption),
the result for ' | ' is very bad (each ' ' in list is treated as an itemlist-divider!!!)
If '|' is used everything works correct.

Re: Bug in parm sep_itemlist of cmd popupmenu

Posted: 16 Jan 2013 14:32
by admin
Ups, confirmed! Fix comes.

Re: Bug in parm sep_itemlist of cmd popupmenu

Posted: 17 Jan 2013 16:45
by PeterH
admin wrote:Ups, confirmed! Fix comes.
Fix confirmed - now it works as it should!

Thanks!