DOpus 11 issues: viewer toggle and hidden files

I just upgraded to Directory Opus 11, which I largely love by the way, and found that it changes the way two of my custom toolbar buttons work. They provide functions to toggle the ActiveX document viewer and show/hide hidden files respectively. First, the viewer toggle button doesn't work at all. The XML for this button is as follows:

<?xml version="1.0"?> <button display="both" label_pos="bottom"> <label>Viewer Toggle</label> <tip>Enables/Disables the Active X Document Viewer</tip> <icon1>113</icon1> <function type="normal"> <instruction>Show PLUGIN docs.dll PLUGINDISABLE</instruction> </function> </button>
I'm guessing it has something to do with a change to the plug-ins, but I never really understood this button in the first place; I just copied/pasted the code from the support forums. It's too handy to do without, however, so I thought I'd ask.

The second button is a "toggle" in the pre-11 sense, meaning I left clicked to enable the showing of hidden files and right clicked to hide them again. The problem with this button is more that the results in the lister don't match what the status bar says, which doesn't quite match what other tools show me. For example, when I navigate to the C:\ drive and left click the button, it reveals two hidden folders "MSOCache" and "ProgramData", whereas the status bar says there are seven hidden objects while a simple "dir /ah" at the command line prompt shows a total of nine. The XML of the button, for sake of reference, is:

<?xml version="1.0"?> <button display="icon" icon_size="large" type="three_button"> <label>Hidden files</label> <icon1>#showhidden</icon1> <button display="icon" icon_size="large"> <label>Hidden files</label> <tip>Show hidden files</tip> <icon1>#move</icon1> <function type="normal"> <instruction>Set HIDEFILTERATTR</instruction> </function> </button> <button display="icon" icon_size="large"> <label>Hidden files</label> <tip>Don&apos;t show hidden files</tip> <icon1>#move</icon1> <function type="normal"> <instruction>Set HIDEFILTERATTR h</instruction> </function> </button> </button>
I don't really know if that's the "right" way to do what I was trying to do, but it always worked in the past and didn't seem to have the problems I'm now seeing.

Thanks in advance for any help y'all can provide!

The first button works OK for me.

Instead of the second button, use the Show System Files and Show Hidden Files items in the default Folder menu.

[quote="leo"]The first button works OK for me.

Instead of the second button, use the Show System Files and Show Hidden Files items in the default Folder menu.[/quote]

I suspect there's an issue because that first button doesn't work for me at all on multiple computers, even if I delete it and re-create it from the XML I supplied. As to the second concern, I want a button not a menu. It's something I do often enough that I want one click on an obvious graphic, not two clicks through a menu. Is there a way to do it as a button?

I should also add that I tried your suggestion, using the show options through the default folder menu, and that actually has more problems than my button insofar as those options update only the folder tree and not the file portion of the lister. At least my button showed some of the hidden files in the file list.

You need to clear the HIDEFILTERATTR h setting you already have as that will work in addition to the filters I pointed to, meaning you'll only see hidden files if both filters (the old one you were using, and the new one I pointed to) are turned off.

Anything in a menu can be moved to a button by simply dragging it in Customize mode, or copying the command behind the menu item.

Regarding the show/hide of hidden files, none of what you suggested worked, but I did discover something new. Apparently the upgrade did something to my default folder format, or perhaps it's interpreted differently between versions, because I found my default folder format now has the "H" option checked in the hide filter. Once I removed that setting from my default folder format, my button behaves mostly as anticipated in terms of the file list.

The number of hidden items it reports, however, is now changed to two, perhaps because of the original nine it mentions only seven of them are now visible in the file list. Bizarrely, to my way of thinking, the two items it does not show are the two items that it used to show, the "MSOCache" and "ProgramData" folders. Clearly, I don't understand what it means to show hidden files. I'd expect it would show me everything with an H attribute, but it only shows me some of them (e.g., folders $Recycle.Bin and Config.Msi are now visible when MSOCache and ProgramData aren't).

On the subject of the ActiveX viewer plugin problem, I think I can also report some progress. I can confirm that my button does indeed toggle whether that plugin is enabled or disabled. What I expected to happen was that the viewer pane would start using the ActiveX plugin for documents by default, which it does not. I have to manually switch when viewing a *.docx file, for example, from its binary viewer to the ActiveX viewer manually. Is there some way to include that step in the button commands? I'm still looking in the command reference but haven't yet found a way.

It'd be best if we stuck to a single question and solved that here, else the thread will be impossible to follow.

The H attribute is not hidden via folder formats by default, so that must have come from your config.

If you read the descriptions of the Hidden and System filter options it should clear up what is and isn't being hidden. One affects files with the H attribute set and the S attribute not set. The other affects files with both H and S set. This isn't new in Opus 11; it changed in later versions of Opus 10 some time ago.

Aha! I think I understand the source of my confusion. When the status bar says "N hidden", it actually means "N that I'm not showing you, not necessarily because they're hidden files". I thought that 'hidden' meant hidden files; it doesn't. Perhaps there's a way for me to make that less ambiguous?

You can edit the startus bar text in Preferences / Display / Status Bar

I have one question: what or where is the "default Folder menu"?

Open the preferences dialog (Settings / Preferences...), type "Folder Formats" into the search field, and the results should show you a "Folder Formats" choice in the left pane. Under that pane you'll find a series of collapsible sections in the right pane, one of which is entitled "Default Formats". That is a very powerful section that lets you tweak the default format used for various things. Editing the "Custom" option is what I was referring to in the post above. Sorry for the ambiguity. Cheers!

The "Folder" menu on the default toolbars which come with the program:


ROFL! I didn't even realize that was a menu! It never ceases to amaze me how I still miss so many features/options in DOpus despite having used it constantly for years. It's just that packed full of file management goodness.