MiniTreeSwitcher

Discuss and share scripts and script files...
highend
Posts: 14701
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: MiniTreeSwitcher

Post by highend »

Try v0.5.6...

To add an icon:
01. Load the minitree from its menu item
02. Use "Save current mini tree..."

The notes in that window tell you how to do it

The drawback is: There is no favorite icon for the last loaded mini tree anymore but that item has a bold font instead

These icons are implemented for all functions, even for importing from other .cfg files

A side note: The current x64 beta already supports icon indexes, the x32 isn't out yet
MiniTreeSwitcher_v0.5.6.xys
(9.24 KiB) Downloaded 4 times
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4446
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7462 at 100% 2560x1440

Re: MiniTreeSwitcher

Post by klownboy »

Thanks highend for mini tree icon update. It's looking good. I noticed though that the drop down in the icon input dialog the script is adding a separator "|".
additional separator added.jpg
additional separator added.jpg (51.75 KiB) Viewed 124 times
On a side note. We discussed earlier removing the "Save" menu item when in full or maxi tree which you did already here:
$menu = regexreplace($menu, "^Save.+?(\r?\n|$)");
It might be nice to actually do a replacement for "Save" when in maxi to have the "Mini tree from here" (from View | Mini tree | "Mini tree from here") which is simply CID #518. So when in Maxi tree a user could click on "Mini tree from here" to make a new mini tree without having to go through the normal menu to do it. When you use that menu item it will automatically sense your in mini tree and the "Save" menu item automatically comes up. It does for me.

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

Re: MiniTreeSwitcher

Post by highend »

It might be nice to actually do a replacement for "Save" when in maxi to have the "Mini tree from here" (from View | Mini tree | "Mini tree from here") which is simply CID #518
I'll add that.

Attach your MiniTreeSwitcher.cfg file (or send it via pm if your trees are too private)
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4446
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7462 at 100% 2560x1440

Re: MiniTreeSwitcher

Post by klownboy »

I sent my cfg file via email. There's no carry over of double or triple "|' in the cfg file. Even though "Mini tree from here" is in the context menu which you have already, it'll probably be good to have direct access to that particular menu item. Thanks.

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

Re: MiniTreeSwitcher

Post by highend »

Try the new version:
MiniTreeSwitcher_v0.5.7.xys
(9.67 KiB) Downloaded 3 times
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4446
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7462 at 100% 2560x1440

Re: MiniTreeSwitcher

Post by klownboy »

Side question nothing to do with anything else we've discussed. Why on SC getkey through out the script do you have 5 fields? I only see 4 in the help file. SC setkey has 5 fields.
getkey(key, section, [INIfile], [flags])
$icon = getkey("Icon", $section, $cfgFile, , "");

klownboy
Posts: 4446
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7462 at 100% 2560x1440

Re: MiniTreeSwitcher

Post by klownboy »

I hadn't tried the delete mini tree menu item until now. This is what I get when I select it. It looks like the proper SC inputselet dialog, but the title looks like the sort title. Odd since I see this in the script:

Code: Select all

function del_trees($cfgFile, $w, $h) {
    $listData = get_section_listdata($cfgFile);
    $sections = inputselect("Select mini tree(s)...", $listData, <crlf>, 1+2+32+1024+8192, , $w, $h, 11:="|");
It appears that it's using the variable $header from the sort funcition.
Delete menu item displays is inputselect but it looks like a sort title.jpg
Delete menu item displays is inputselect but it looks like a sort title.jpg (26.87 KiB) Viewed 96 times

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

Re: MiniTreeSwitcher

Post by highend »

Why on SC getkey through out the script do you have 5 fields?
Just an oversight
It looks like the proper SC inputselet dialog, but the title looks like the sort title
Not here?

Latest version adds the default icon "*.<DIR>" to all places, even when no icon is given for e.g. a mini tree to save / import.
Otherwise you'll get ugly question mark icons in delete / reorder / import dialogs...
MiniTreeSwitcher_v0.5.8.xys
(9.74 KiB) Downloaded 1 time
One of my scripts helped you out? Please donate via Paypal

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

Re: MiniTreeSwitcher

Post by highend »

And here the latest version...

It checks icons for existence before displaying them and replaces non-existing ones with "*.<DIR>"...
MiniTreeSwitcher_v0.5.9.xys
(9.94 KiB) Downloaded 7 times
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4446
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7462 at 100% 2560x1440

Re: MiniTreeSwitcher

Post by klownboy »

All seems to be working fine now. The delete mini tree dialog issue I brought up has resolved itself as well. Thanks highend.

Post Reply