Pages: 1
Print
Author Topic: Not able to save toolbar settings after i exit XMetaL  (Read 4192 times)
skadethankar
Member

Posts: 1


« on: June 05, 2012, 02:51:20 AM »

Hi,

I am trying to set my toolbars from View > Toolbars. I select the required toolbars and exit XMetaL. When I re-launch it, the toolbar settings are gone.
How do I resolve this?
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #1 on: June 05, 2012, 03:16:51 PM »

What you are describing should never occur so you might wish to discuss your particular system setup with XMetaL Support.

Toolbar settings are partially saved to your Windows Registry (basically position and size) and partially saved in TBR files (the name, which buttons it contains, what to do when someone clicks a button, etc).

Perhaps your system configured to block read/write operations to certain portions of your Windows registry. These settings are stored here:
HKEY_CURRENT_USER\Software\SoftQuad\XMetaL 6.0\WorkspaceEx Manager\XM Author Workspace

Or perhaps some other software or an XMetaL customization is messing with your registry?

If XMetaL Author crashes before it shuts down then toolbar settings are not written out. If you have a customization loaded that causes the product to crash each time it shuts down then that might be the problem. It is not that difficult to write a bad customization that would cause such a crash.

TBR files are normally written to and read from here:
%appdata%\SoftQuad\XMetaL\<version>\

Example:
C:\Documents and Settings\dread\Application Data\SoftQuad\XMetaL\6.0\default.tbr

For specific schemas the location is usually here:
%appdata%\SoftQuad\XMetaL\<version>\gen\<original path to DTD including drive letter>\

Example:
C:\Documents and Settings\dread\Application Data\SoftQuad\XMetaL\6.0\gen\C\Program Files\XMetaL 6.0\Author\Rules\DocBook\5.0xi\docbookxi.tbr

All of these things combine in a cumulative way to come up with the position of a particular toolbar and whether or not it is visible when no documents are open or when a specific document type is being edited. When XMetaL Author starts up the "default" TBR is loaded (no documents open) and then toolbar settings are changed depending on the document type currently being edited (one TBR file per document type). This is most obvious if you edit two or more different document types (DTDs) and switch between them.
Logged
roysavio
Member

Posts: 1


« Reply #2 on: June 06, 2012, 12:50:02 AM »

Hi Derek,

How are TBR files connected with XMetaL? So if we delete the TBR files, XMetaL recreates them. So does XMetaL actually read from the TBR files at any point?

To resolve this issue that one of our customers is facing, can we go their to their XMetaL folder and delete all TBRs in the hope that the issue might go away when XMetaL recreates the TBRs?

Thanks.
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #3 on: June 06, 2012, 11:44:10 AM »

Every time you exit the application the default.tbr file is written to as well as the TBR file for any DTD that was used during the session. These files store information about how the user has customized their toolbars and menus (added/removed buttons, added custom toolbars).

Every time XMetaL Author starts up it reads per-user copy of default.tbr and then for each DTD that is loaded it reads the per-user copy of the TBR file associated with that DTD (or XSD), ie: <dtdname>.tbr. The default.tbr sets up menus and toolbars for XMetaL Author when no files are open. Then when a document is opened the TBR file for that DTD (or XSD) is loaded and the TBR settings are added / subtracted from the default.tbr file to come up with what the user should be seeing for the current document.

You can delete TBR files if you want but if you do so all custom settings that your users might make will be destroyed.

Per-user TBR files are stored in the locations I have listed in my previous post.
Logged
Pages: 1
Print
Jump to:  

email us