Page 1 of 2

Icon index not supported in inputselect()?

Posted: 23 Jan 2026 23:07
by highend

Code: Select all

    $items = <<<>>>
1||:nuke
2||%winsysdir%\shell32.dll /10
3||<xyicons>\Apple.ico
    >>>;
    $sel = inputselect("Select...", $items, <crlf>, 1+2+32+1024+8192, 11:="|");
2026-01-23_23-04-05.png
If I remove " /10" the icon from shell32.dll itself is shown

If done with popupmenu() it works fine with the index:

Code: Select all

    $items = <<<>>>
1||:nuke
2||%winsysdir%\shell32.dll /10
3||<xyicons>\Apple.ico
    >>>;
    $sel = popupmenu($items, 6:=<crlf>, 7:="|");
2026-01-23_23-05-54.png

Re: Icon index not supported in inputselect()?

Posted: 24 Jan 2026 10:32
by admin
I don't see any claim in the help that says this would work. That makes it a wish. :)

Re: Icon index not supported in inputselect()?

Posted: 24 Jan 2026 10:46
by highend
The help entry for popupmenu() doesn't mention explicitly that it supports the /<index> way for icons neither...

Consistency^^ :ninja:

Re: Icon index not supported in inputselect()?

Posted: 24 Jan 2026 10:52
by admin
When I find the time^^ :ninja:

Re: Icon index not supported in inputselect()?

Posted: 24 Jan 2026 11:02
by highend
Find it faster! :ghost: :biggrin:

Re: Icon index not supported in inputselect()?

Posted: 24 Jan 2026 11:32
by admin
Done 8)

Re: Icon index not supported in inputselect()?

Posted: 24 Jan 2026 11:55
by highend
:tup: :appl:

Re: Icon index not supported in inputselect()?

Posted: 24 Jan 2026 23:53
by jupe
Since on this subject, a similar wish, if not too much hassle, could the icon params of SC inputselect/input also support the index, ie

Code: Select all

$i = "<xy> /4"; inputselect(" ", 4:=1, 9:=$i); input(8:=$i);

Re: Icon index not supported in inputselect()?

Posted: 25 Jan 2026 10:08
by admin
Apparently I could make it work without too much hassle, did not thoroughly test though (too much hassle). Hence no mention in change log. Try next beta.

PS: The next beta will be more tolerant about the number of spaces in <xy> /4. Also <xy> /4 will work.

Re: Icon index not supported in inputselect()?

Posted: 25 Jan 2026 19:07
by jupe
Thanks for adding it, that's great, :cup: :beer:

...but I just tested it and it seems to be using maybe the 16x16 icon and scaling up.

Re: Icon index not supported in inputselect()?

Posted: 25 Jan 2026 19:14
by admin
What icon display size are you expecting in your context?

Re: Icon index not supported in inputselect()?

Posted: 25 Jan 2026 19:24
by jupe
Well if you use an exe without index it uses what looks to be the normal 32x32 icon, but usually like if you use internal toolbar buttons they are 24x24 @ 100%.

Re: Icon index not supported in inputselect()?

Posted: 25 Jan 2026 19:46
by admin
Ah yes. Will be better in the next beta.

Re: Icon index not supported in inputselect()?

Posted: 26 Jan 2026 10:46
by highend
Any reason why the changes didn't make it into the current x32 version?

Re: Icon index not supported in inputselect()?

Posted: 26 Jan 2026 11:07
by admin
Well, it's time to leave it behind. Can't do everything twice forever.