improvement for inputselect() - icons for nonicon-entries

Features wanted...
Post Reply
zakhar
Posts: 171
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: 14553
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: 171
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.

Post Reply