Is there any way to know the number of tabs on a lister?
Only within scripting, I am afraid.
Thanks
Well you can count them yourself as well, it depends what you want the information for ![]()
I wanted to know my tab count too on rare occasions. I ended up putting the value in the tab context menu 'Setting...' button tooltip. The tab count is provided by an evaluator variable for tab context.
=IsSet(count)?"Open the Preferences page for configuring folder tabs\nTab count: "+count:"N/A"
You could also create a menu item in the tab context menu that only shows the tab count.
- Customize mode
- Context Menus tab
- Double-click 'Folder tabs' from the list
- Add a new item
Since I don't need the tab count too often I chose the former option. You could also use the latter and hide it unless a modifier is held down by adding. @showif:=KeyDown("ctrl")
Thanks, it's given me some ideas.
In case you didn't notice an evaluator variable tabcount was recently added for button context. Doesn't need to be in the tab context menu anymore.
Here's a button to give the tab count in the active file display:
Tab Count Button in the Folder Tabs Context Menu.dcf (559 Bytes)
It should be used in the Folder Tabs context menu.
Here is the code:
//https://resource.dopus.com/t/number-of-tabs/56700/5
@label:"Tabs in the Source File Display: " + count
=IsSet(count)
thanks, it works
Using a variation of this to get tab counts for both source and destination in the same button:
@label:"S: " + tabcount + " | D: " + tabcount_other
This works fine whether in single file or dual file display. When in dual file display, tabount_other returns 0, with label showing
D: 0
I would like to refine this so the label changes to show either "S: # | D: #" or "S: #" based on DUAL=On and DUAL=Off status. I have tried variations of this with no success:
@if:Set DUAL=On
@label:"S: " + tabcount + " | D: " + tabcount_other
@if:Set DUAL=Off
@label:"S: " + tabcount"
I don't think this works as it simply sets the label based on the last line. What evaluator options exist to accomplish this? If none, what's the appropriate if-then-else syntax?
@label:"S: " + tabcount + (tabcount_other ? (" | D: " + tabcount_other) : "")
@Leo I think you just set a new forum response time record...
It works, thanks!



