that's sad, but understandable.
quite an inventive decision, don't even know how to put that circle..
that's sad, but understandable.
quite an inventive decision, don't even know how to put that circle..
The new total icon support involved some fundamental rewriting. It will take some days to fully cover all cases. This one and a couple of others will be fixed in the next beta.
Oh, didn't know that ° isn't as accessible on a US keyboard. I will change it to slash (/) which will do the job just as well. (| is not possible here because it already has another function in this context.)
I'm sorry to again hijack topic about inputselect, but as most discussions about "more icons" are here, have to ask it here. Got little frustration after last beta, 'cause i thought popupmenu already could use icons for items in menu, just couldn't use png/images as icons... Help file states:
Code: Select all
popupmenu()
Pops a menu and returns the selected item.
Syntax
popupmenu(itemlist, [x=-1], [y=-1], [start=1], [count=-1], [flags=0], [sep_itemlist="|"], [sep_item=";"], [on_cancel=""])
itemlist List of items separated by sep_itemlist.
Each item is made of a Caption and optionally a Data part, an Icon part, and a State part, all parts being separated by sep_item: "Caption;Data;Icon;State"
Caption: Menu caption. Use "-" (no quotes) to specify a menu separator.
Data: Returned when item is clicked. If missing or empty then Caption is returned.
Icon: Supports various sources for icons
Toolbar icons, prefixed by ":", e.g. :paper
Generic file system icons, e.g. *.png
Specific files, e.g. C:\Program Files (x86)\XYplorer\XYplorer.exe
Icon file (defaulting to <xyicons>, e.g. 64_bit.ico
XYplorer native and environment variables, e.g. <xy>
Code: Select all
+ SC popupmenu/popupnested enhanced: Experimentally now you can add custom
icons to script items in your scripted menu, at the second position and
identified by / as icon marker.
That makes 3 possible syntaxes for script items (here assuming sep_item=";"):
::Script (here Script is also used as Caption)
::Caption;Script
::Caption;/Icon;Script
Example:
popupmenu("::Caption for a script;/:sync;e 'Hello'");
Code: Select all
// Caption|Data|Icon|State
$menu = <<<>>>
0||:sync
1||R:\1.png
2||R:\2.jpg
3||R:\3.ico
>>>;
$result = popupmenu($menu, 6:=<crlf>, 7:="|");
too far in the past to remember, but again i cheched only Help file this time, that's why missed it.
input(5:=300, 7:='a|b|c|d');