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); }
$sel = 1;
the correct icon is shown, with $sel = 2;
you get a question mark. If the tab is renamedto "Test|<xyicons>\AHK.ico" or "Test|<full path to>\AHK.ico"
inputselect()
works just fine...