Page 1 of 1

Mini Tree activation

Posted: 30 Jan 2012 16:54
by Borut
Is there a way to explicitly activate or deactivate MiniTree? I have found just a way to toggle.

Please have mercy if the answer was obvious and I overlooked it.

Re: Mini Tree activation

Posted: 30 Jan 2012 17:03
by serendipity
Borut wrote:Is there a way to explicitly activate or deactivate MiniTree? I have found just a way to toggle.

Please have mercy if the answer was obvious and I overlooked it.
Toggle IS the way to activate/deactivate it.

Re: Mini Tree activation

Posted: 30 Jan 2012 17:08
by Borut
At a certain point in script I want to activate it, irrespectively of its current state (be it on, or off, I want to put it on). And vice versa. I do not want to toggle.

Re: Mini Tree activation

Posted: 30 Jan 2012 17:26
by serendipity
Borut wrote:At a certain point in script I want to activate it, irrespectively of its current state (be it on, or off, I want to put it on). And vice versa. I do not want to toggle.
Oh, sorry my mistake. I don't see a way (maybe I overlooked).
Closest I got was to try and get minitree state by using "get ("#489");" but that is not yet coded.
Maybe others know a way.

Re: Mini Tree activation

Posted: 30 Jan 2012 17:36
by admin
serendipity wrote:
Borut wrote:At a certain point in script I want to activate it, irrespectively of its current state (be it on, or off, I want to put it on). And vice versa. I do not want to toggle.
Oh, sorry my mistake. I don't see a way (maybe I overlooked).
Closest I got was to try and get minitree state by using "get ("#489");" but that is not yet coded.
Maybe others know a way.
Correct, I also think coding get("#489") will be the only way. Or I add something to the loadtree command...

Re: Mini Tree activation

Posted: 30 Jan 2012 19:36
by Stefan
Borut wrote:At a certain point in script I want to activate it, irrespectively of its current state (be it on, or off, I want to put it on). And vice versa. I do not want to toggle.
Dirty trick as an work around,

if it is no problem to always save your configuration:

Code: Select all

#193;                                                 //File / Settings / Save Configuration to XYplorer.ini

   $MinitreeEnabled = getkey("Minitree", "Settings"); //read the XYplorer.ini

   if ($MinitreeEnabled == 0){#489;}                  //View / Mini Tree

Re: Mini Tree activation

Posted: 30 Jan 2012 20:09
by admin
admin wrote:Correct, I also think coding get("#489") will be the only way.
While I'm at it, any other desires of this type, IOW other comand IDs I should add here?

Re: Mini Tree activation

Posted: 31 Jan 2012 01:27
by Zardoz2293
admin wrote:
admin wrote:Correct, I also think coding get("#489") will be the only way.
While I'm at it, any other desires of this type, IOW other comand IDs I should add here?
At the risk of being off topic, I was directed here for problems I'm having. I don't know enough about the command ID thing to know if I'm on the right 'branch' so to speak. So please excuse my ignorance. That topic was http://www.xyplorer.com/xyfc/viewtopic. ... 409#p68409

1. Branch View: Order By FOLDERS, FILES (default), but desire Order By FILES, FOLDERS
Zardoz2293 wrote:Default: Order By FOLDERS, FILE

Code: Select all

F:\XY.Test\Test\PDF\v3                                      <DIR>
F:\XY.Test\Test\PDF\v3\v3.10 (2005-10-03)                   <DIR>
F:\XY.Test\Test\PDF\v3\v3.10 (2005-10-03)\Install.exe
Required/Needed: Order By FILES, FOLDERS

Code: Select all

F:\XY.Test\Test\PDF\v3\v3.64 (2010-12-10)\Install.exe
F:\XY.Test\Test\PDF\v3\v3.64 (2010-12-10)                   <DIR>
F:\XY.Test\Test\PDF\v3                                      <DIR>
2. Branch View: Ability *not* to have List View switch displaying the Branch View with the included "status" bar being modified.

What are your thoughts? (if I'm in the wrong spot I'll delete and re-post elsewhere)

Re: Mini Tree activation

Posted: 31 Jan 2012 10:02
by admin
Zardoz2293,

1. No, but I could add a command to reverse the current sort order (whatever it is). Would that help?

2. Don't understand.

Re: Mini Tree activation

Posted: 31 Jan 2012 13:20
by Zardoz2293
admin wrote:1. No, but I could add a command to reverse the current sort order (whatever it is). Would that help?
Yes, it would be helpful with some cases as the order is perfect in reverse order.
admin wrote:2. Don't understand.
I'll create another thread as it has nothing to do with Mini Tree activation. http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=7568

Thanks Don!

Re: Mini Tree activation

Posted: 31 Jan 2012 13:59
by Borut

Code: Select all

v10.80.0102 - 2012-01-31 12:41
      Example:
        echo get("#489", "Mini Tree", "Maxi Tree");
Nice, thanks Don! So I am using minimalistic things like these, if anyone once needs some simple examples:

Code: Select all

"MiniTree: Load : minitreeload"
   loadtree "", 3;
   #1040; // optimize tree

"MiniTree: Toggle : minitreetoggle"
   #489;  // toggle minitree
   #1040; // optimize tree

"MiniTree: On : minitreeon"
   if (get("#489")==0) {#489;}; // toggle if minitree off
   #1040;                      // optimize tree

"MiniTree: Off : minitreeoff"
   if (get("#489")==1) {#489;}; // toggle if minitree on
   #1040;                      // optimize tree

Re: Mini Tree activation

Posted: 28 Apr 2012 03:37
by abercrombie
serendipity wrote:
Borut wrote:Is there a way to explicitly activate or deactivate MiniTree? I have found just a way to toggle.

Please have mercy if the answer was obvious and I overlooked it.
Toggle IS the way to activate/deactivate it.
Thanks for your reply. I have activated it .