Page 1 of 1

Icon path resolving for inputselect() - flag 1024

Posted: 08 Dec 2019 14:10
by highend
inputselect() with 1024 for the flag parameter doesn't use <xyicons> as the root path when only the name of the icon is given.

In contrast popupmenu() resolves icon names because it uses <xyicons> as the root when no path is given.

An example. Rename a tab like "Test|AHK.ico" and make sure that this icon exists in <xyicons>.

Use this script:

Code: Select all

    $sel = 1; // Switch it to "2" to see the difference

    $menu = "";
    while ($i++ < tab("get", "count")) {
        $info = tab("get", "name", $i);
        $icon = gettoken($info, 2, "|");
        if (!$icon) { $icon = ":showfolders"; }
        $caption = tab("get", "path", $i);
        $menu   .= $caption . "|" . $caption . "|" . $icon . <crlf>;
    }
    if ($sel == 1) { $id = popupmenu($menu, 5:=1, 6:=<crlf>, 7:="|"); }
    elseif ($sel == 2) { $ids = inputselect("Check tab(s) to close...", $menu, <crlf>, 1+2+32+128+1024+8192, , 800, 600); }
With $sel = 1; the correct icon is shown, with $sel = 2; you get a question mark. If the tab is renamed
to "Test|<xyicons>\AHK.ico" or "Test|<full path to>\AHK.ico" inputselect() works just fine...

Re: Icon path resolving for inputselect() - flag 1024

Posted: 17 Dec 2019 14:24
by highend
<bump>

Re: Icon path resolving for inputselect() - flag 1024

Posted: 21 Jan 2020 15:40
by admin
Confirmed. Fix on the way. (Thanks for the comfy presentation! :))