improvement for inputselect() - icons for nonicon-entries

Features wanted...
Post Reply
zakhar
Posts: 172
Joined: 08 Sep 2010 21:13

improvement for inputselect() - icons for nonicon-entries

Post by zakhar »

Hello, Dear XYplorer Community!
May be, it were good to add
a style option (new_style_option in the following example) and / or
a syntax option, that would be indicated by "|"-sign (as example)
for inputselect() to give user the possibility to show individual defined icons
for nonicon-items (optional text entries) on the left side in the dialog window as follows:

Code: Select all

$nonicon_item1 = "some text 1|path_to_the_icon1"; // nonicon-entry 1 with an individual_icon_1 
$nonicon_item2 = "some text 2|path_to_the_icon2"; // nonicon-entry 1 with an individual_icon_2
$icon____items = "a list of files and / or folders"; // icon-entries
$db__________ = "$nonicon_item1<crlf>$nonicon_item2<crlf>$icon_items";
inputselect(,$db__________,<crlf>,1+2048+new_style_option,0);
This would allow to replace the "question"-sign on the left side of the nonicon-entries with a user defined icon.
Thanks!

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

Re: improvement for inputselect() - icons for nonicon-entries

Post by highend »

style=1024?
One of my scripts helped you out? Please donate via Paypal

zakhar
Posts: 172
Joined: 08 Sep 2010 21:13

Re: improvement for inputselect() - icons for nonicon-entries

Post by zakhar »

highend wrote: 31 Oct 2025 13:36style=1024?
Thank you, I did not see this already existing option 1024.
I tried 1024 and found out, that 1024 overrides 2048 in "1+1024+2048",
so that paths of normal icon-entries will be shown despite of 2048.
#
Edit (02.11.2025, 11:57):
The problem is that the nonicon-items and icon-items must be shown in one menu.
As I understand it is not possible for now.

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

Re: improvement for inputselect() - icons for nonicon-entries

Post by admin »

zakhar wrote: 01 Nov 2025 15:22 The problem is that the nonicon-items and icon-items must be shown in one menu.
It's possible. Only 2048 is not supported if 1024 is present.

zakhar
Posts: 172
Joined: 08 Sep 2010 21:13

Re: improvement for inputselect() - icons for nonicon-entries

Post by zakhar »

admin wrote: 18 Nov 2025 17:29 It's possible.
My solution for now is creating of dummy folders, which have nonicon-item-names and custom icons (using desktop.ini-files) and
let script do some things other than opening / going to this dummy folders.
Example of a nonicon-item-name of a dummy folder: "Open ini-file" - selecting this folder in the inputselect()-dialogue lets script open an ini-file.

Post Reply