Page 1 of 1

List of Internal Toolbar Icons

Posted: 10 Jun 2022 09:41
by XY_GVO
From the help file:
Custom tab icons

You can customize the icon of each Tab. Simply append any file spec to the caption of the tab, i.e. to the name you give to a tab by the Rename Tab function (found in the tab headers context menu), separated by a | (pipe). It can be an icon file or any other file or folder with associated system icon. XYplorer native variables, environment variables, and portable paths are supported. Internal toolbar icons (prefixed with ":") are supported as well. Examples:

fav|E:\Test\Kiss.ico
xy|<xy>
co|Computer
|:home Use the "home" toolbar icon. No particular name specified.
|fun.ico If the full path is not given the path resolved relative to the Icons Path (default: <xydata>\Icons).
Tip: Right-clicking the icon of a tab pops a breadcrumb menu for the tab's path.
That's all great, but where can I find a list of the "Internal Toolbar Icons" that I can use? Now it's pure guess work and I tried to get all sorts of combinations for a particular icon I would like, without success...

Thanks for answering,
Geert

Re: List of Internal Toolbar Icons

Posted: 10 Jun 2022 11:48
by highend
To see all internal XY icon names for _ALL_ toolbar buttons,
hold CTRL while clicking the "Customize Toolbar..." menu item

Either via: Right click on (free) space in the toolbar
or Menu - Tools - Customize Toolbar...

Inside the "Customize Toolbar..." window you can hold CTRL as well
and hover over entries to see their internal icon name...

Scripting:

Code: Select all

    $entries = replace(toolbar(, , 1), ",", <crlf>);
    // Filter out entries (ctbs, divider, {...})
    $entries = regexreplace($entries, "^(-|ctb|\{).+?(\r?\n|$)");
    // Sort and remove empty ones
    $entries = formatlist($entries, "es", <crlf>);
    // Affix ":"
    text regexreplace($entries, "^(.)", ":$1");

Re: List of Internal Toolbar Icons

Posted: 10 Jun 2022 11:54
by admin
Or hold CTRL while hovering a toolbar button.