Retaining Focused Folder when entering Branch View

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
DrChiron
Posts: 40
Joined: 04 Apr 2013 15:01
Location: Los Angeles environs

Retaining Focused Folder when entering Branch View

Post by DrChiron »

My TVSeries folder has many subfolders, one for each show. Those subfolders contain all of the unwatched episodes (I collect faster than I can view them).
When lower in the list of Show folders and then selecting Branch View, the focus has moved to the first Show folder.
Is there a setting to retain the focus of the folder highlighted prior to entering BV?
Retired Hollywood Video Engr
[WinX Home amd64] [XYplorer 20.80.0000]

DrChiron
Posts: 40
Joined: 04 Apr 2013 15:01
Location: Los Angeles environs

Re: Retaining Focused Folder when entering Branch View

Post by DrChiron »

Trying an alternative approach, I found that first opening a TVSHOWNAME folder, then pressing the BranchView toolbar button followed by the UParrow button achieves the desired result; but I do not see why the default action of entering BranchView while lower in the folder list causes the focused folder to be changed to the top of the list. :cry:
Retired Hollywood Video Engr
[WinX Home amd64] [XYplorer 20.80.0000]

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Retaining Focused Folder when entering Branch View

Post by bdeshi »

The following ctb snippet should help.
Enter ::snippet; in the addressbar and enter the following code in the open textbox:

Code: Select all

Snip: CTB 1
  XYplorer 14.30.0416, 8/23/2014 6:13:25 PM
Action
  NewUserButton
Name
  BranchView (retain focus)
Icon
  :flatview
ScriptL
  if(exists(<curitem>)==2){$f=<curitem>}else{$f==<curpath>}
   #311;selectitems $f,2,1,n;
   sendkeys "{down}";wait 1;if(<curitem>!=$f){sendkeys "{up}"}//focusloss fix
ScriptR
  button flatview, 2;
FireClick
  0
A new ctb identical to Branch View button will be added to the toolbar.
Select a folder and click this button, Flat View will be triggered, but the selected (focused) folder will be still selected.
I have a question: does the list focus move to selected item?added one more line to the LClick script above, now the selected folder should come into visible focus after toggling flatview.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

DrChiron
Posts: 40
Joined: 04 Apr 2013 15:01
Location: Los Angeles environs

Re: Retaining Focused Folder when entering Branch View

Post by DrChiron »

@SammaySarkar
Thank you for the code "snippet". I haven't read up on the snippet feature yet, but intend to do so, analysing it step by step as this seems to be my introduction to the scripting feature as well. Currently using XYp 14.20.0302. You used a newer version and although it may just be a form of programming doc etiquette, I intend to upgrade to a new rev before trying it. I have other priorities now, not the least of which is recovering from some malware related to a Chrome extension that somehow reverted my Win7 start menu to its default condition.
Plus I am still recovering from intestinal cancer abdominal surgery in July (caught early due to annual physical exam's stool sample followed by colonoscopy; do not skip your checkups). Doc
Retired Hollywood Video Engr
[WinX Home amd64] [XYplorer 20.80.0000]

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Retaining Focused Folder when entering Branch View

Post by bdeshi »

First, get well soon!
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply