Page 1 of 1

XY icon copy

Posted: 27 Nov 2017 15:03
by highend
Shows all available internal XY icons in a popup menu.

The idea is based on Enternals XYIconCopy version (viewtopic.php?f=7&t=9531)

Main difference, since v18.50.0301 XY supports the undocumented! [flags] parameter for the toolbar() script
command, which dynamically returns all icons instead of a list of fixed ones... This script incorporates the
new way to get them all...

The icons are filtered automatically, but by changing the variable

Code: Select all

$filterIcons = true;
to false you can change that behavior.

If filtering is active, all custom toolbar buttons from 2 to 64 and a lot of drive icons are removed
because they all provide an already existing icon...

A header that shows the count of icons found is by default displayed on top of the menu.
If you want to hide it, change the

Code: Select all

$displayHeader = true;
variable to false.
Clicking on the header entry will do (apart from closing the menu) nothing!

With the header:
with header.png
with header.png (8.02 KiB) Viewed 6700 times
Without:
without header.png
without header.png (6.95 KiB) Viewed 6700 times
v19.00.0302 adds a new flag to inputselect(): 1024
It is now much easier to scroll through the list of icons
(and filter it if you like)
19.00.0302.png
19.00.0302.png (16.85 KiB) Viewed 6262 times
Current version:
XY icon copy_v0.7.xys
(6.94 KiB) Downloaded 239 times
Old version(s):
XY icon copy_v0.6.xys
(7.07 KiB) Downloaded 393 times
XY icon copy_v0.5.xys
(6.03 KiB) Downloaded 382 times
XY icon copy_v0.4.xys
(5.8 KiB) Downloaded 345 times
XY icon copy_v0.3.zip
(2.23 KiB) Downloaded 383 times
XY icon copy_v0.2.zip
(2.02 KiB) Downloaded 341 times
XY icon copy_v0.1.zip
(1.87 KiB) Downloaded 356 times

Re: XY icon copy

Posted: 29 Nov 2017 13:45
by highend
Changelog

Code: Select all

v0.2
 • Fixed  : Replaced gvf -> gvfoff and visualfilter -> vfoff menu entries
            These are from type on/off

Re: XY icon copy

Posted: 29 Nov 2017 23:49
by highend
Changelog

Code: Select all

v0.3
 • Added: $displayHeader configuration option
          If set to true (default) the menu will show a header with how many
          icons were found. If set to false, the header will be hidden

Re: XY icon copy

Posted: 11 Dec 2018 00:50
by highend

Code: Select all

v0.4
 + Added: Support for v19.00.0302: inputselect() - flag = 1024 (show icons)
          Much easier to scroll through the list and filter it, now...
19.00.0302.png
19.00.0302.png (16.85 KiB) Viewed 6261 times

Re: XY icon copy

Posted: 09 Jan 2019 23:36
by highend

Code: Select all

v0.5
 + Added: Icons for dph, maxitree, queuepaused and script

Re: XY icon copy

Posted: 15 Apr 2020 14:57
by highend

Code: Select all

v0.6
 + Added: All currently known (and previously) missing internal icons
It now supports a sporting 171 internal icons on the current version...

Re: XY icon copy

Posted: 18 Apr 2020 19:27
by klownboy
Hi and thanks highend for keeping this icon listing up-to-date. For the heck of it, I made a minor change at the end such that it would run the button (if it's run-able) when you double click the item or hit OK, If you hold down control or shift when pressing OK it copies the icon text...just to give it a bit more functionality...I must be bored! :)

Code: Select all

        $selection = inputselect(gettoken($icons, "count", <crlf>) . " icon(s) found...<crlf>- Press OK to run toolbar button<crlf>- Hold contol down to copy icon text to clipboard", $icons, <crlf>, 1+32+64+1024+4096+8192, , 320, 760);
			$mod = get("shift");
			if (!$selection) { status "No icon entry selected, aborted!", "8B4513", "stop"; end true; }
			elseif($mod >= '1') {
				copytext ":$selection";
				status "Copied to clipboard: :$selection";}
			else {
				button "$selection";}
	}

Re: XY icon copy

Posted: 16 Jan 2024 12:34
by MBaas
"ladybug" is missing from the list!

Re: XY icon copy

Posted: 16 Jan 2024 15:49
by klownboy
Until highend updates the script, you could add "ladybug" as shown below in the $addNewIcons heredoc:

Code: Select all

        $addNewIcons = <<<>>>
clipcopy|clipcut|clipimage|cliptext|dph|findlabeldark|labelsdark|ladybug|tabsets|
vfoff|vfon
>>>;

Re: XY icon copy

Posted: 16 Jan 2024 16:26
by MBaas
excellent, thanks! :tup:

Re: XY icon copy

Posted: 16 Jan 2024 18:02
by highend
Added v0.7 with that icon...