Icon path resolving for inputselect() - flag 1024

Features wanted...
Post Reply
highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Icon path resolving for inputselect() - flag 1024

Post 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...
One of my scripts helped you out? Please donate via Paypal

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

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

Post by highend »

<bump>
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

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

Post by admin »

Confirmed. Fix on the way. (Thanks for the comfy presentation! :))

Post Reply