Page 1 of 1

improvement for inputselect() - icons for nonicon-entries

Posted: 31 Oct 2025 13:20
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!

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

Posted: 31 Oct 2025 13:36
by highend
style=1024?

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

Posted: 01 Nov 2025 15:22
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.

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

Posted: 18 Nov 2025 17:29
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.

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

Posted: 18 Nov 2025 18:38
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.