Icon index not supported in inputselect()?

Features wanted...
highend
Posts: 14923
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Icon index not supported in inputselect()?

Post 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
You do not have the required permissions to view the files attached to this post.
One of my scripts helped you out? Please donate via Paypal

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

Re: Icon index not supported in inputselect()?

Post by admin »

I don't see any claim in the help that says this would work. That makes it a wish. :)

highend
Posts: 14923
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Icon index not supported in inputselect()?

Post by highend »

The help entry for popupmenu() doesn't mention explicitly that it supports the /<index> way for icons neither...

Consistency^^ :ninja:
One of my scripts helped you out? Please donate via Paypal

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

Re: Icon index not supported in inputselect()?

Post by admin »

When I find the time^^ :ninja:

highend
Posts: 14923
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Icon index not supported in inputselect()?

Post by highend »

Find it faster! :ghost: :biggrin:
One of my scripts helped you out? Please donate via Paypal

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

Re: Icon index not supported in inputselect()?

Post by admin »

Done 8)

highend
Posts: 14923
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Icon index not supported in inputselect()?

Post by highend »

:tup: :appl:
One of my scripts helped you out? Please donate via Paypal

jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Icon index not supported in inputselect()?

Post 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);

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

Re: Icon index not supported in inputselect()?

Post 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.

jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Icon index not supported in inputselect()?

Post 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.

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

Re: Icon index not supported in inputselect()?

Post by admin »

What icon display size are you expecting in your context?

jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Icon index not supported in inputselect()?

Post 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%.
You do not have the required permissions to view the files attached to this post.

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

Re: Icon index not supported in inputselect()?

Post by admin »

Ah yes. Will be better in the next beta.

highend
Posts: 14923
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Icon index not supported in inputselect()?

Post by highend »

Any reason why the changes didn't make it into the current x32 version?
One of my scripts helped you out? Please donate via Paypal

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

Re: Icon index not supported in inputselect()?

Post by admin »

Well, it's time to leave it behind. Can't do everything twice forever.

Post Reply