Pages: « 1 2 3 4 5 6 7 8 9 10 »
 61 
 on: April 26, 2017, 03:34:05 PM 
Started by C4 - Last post by tonys
To move the cursor before the end tag:

rng.MoveToElement("P");
rng.SelectContainerContents();
rng.Collapse(0);

To move after the end tag:

rng.MoveToElement("P");
rng.SelectAfterContainer();

 62 
 on: April 25, 2017, 07:10:43 PM 
Started by C4 - Last post by C4
Hi,

We are using XMetal Author Essential 11.

I'm trying to write a macro to find an element using:

// XMetaL Script Language JSCRIPT:
var rng=ActiveDocument.Range;
rng.MoveToElement("P",false);
// make the range visible
rng.Select();

Is there any way to move to the end of the element rather than the beginning of the element?

Thanks.

 63 
 on: April 11, 2017, 10:13:50 PM 
Started by 55 - Last post by 55
Thanks :)
We will be using macros to push out the toolbars

 64 
 on: April 11, 2017, 05:18:44 PM 
Started by 55 - Last post by XMetaLOldTimer
You can get the Assets tab to display if you add the following INI statement:

show_assets_by_default=true

As Derek note, the Assets tab is deprecated since the introduction of Windows user-account-control (UAC) with Windows Vista.  Please keep in mind that you cannot create new assets directly from XMetaL because UAC will not let XMetaL write to the program files directory area.  Running XMetaL with admin-privileges and turning off UAC (if possible) might allow creating new assets but it is not something we support anymore.


 65 
 on: April 11, 2017, 04:51:14 PM 
Started by bjorn - Last post by XMetaLOldTimer
Assume you are not using DITA, you can customization the context menu for all document types by implementing a On_Application_Document_Context_Menu startup event macro. 

To only customizing the context menu for a specific document type, implement a On_Context_Menu event macro in your <dtd_name>.mcr file. 

The logic is the same for either of these event macros.  During execution of either these event macros, the  Application.ActiveContextMenu property will return a CommandBarPopup object that represents the context menu about to be displayed.  Query that objects Controls property to get the context menu's CommandBarControls collection.  From that collection, use Item method to get an individual CommandBarPopup/Control item that you want to remove and call its Delete method to actual remove it.

 66 
 on: April 11, 2017, 04:38:26 PM 
Started by 55 - Last post by XMetaLOldTimer
The only way to push out global toolbar modifications is via an On_Default_CommandBars_Complete startup event macro.  Dropping a default.tbr file onto the client machine will not work and is a known limitation.


 67 
 on: April 11, 2017, 04:27:16 PM 
Started by bjorn - Last post by Derek Read
This dialog is not XFT it is a built-in dialog coded into the software.

If you want to make changes you might try to create a dialog with similar features using XFT that calls the APIs provided for working with Change Tracking and adds your own logic:

ActiveDocument.AcceptChange()
ActiveDocument.RejectChange()
ActiveDocument.AcceptAllChanges()
ActiveDocument.RejectAllChanges()
ActiveDocument.GotoNextChange()
ActiveDocument.GotoPrevChange()

 68 
 on: April 10, 2017, 07:50:46 PM 
Started by 55 - Last post by 55
We are trying to push out a set of toolbars to be used by all users. When we push them out, it makes all the other toolbars disappear, which means to fix it, we have to reset the workspace for each user and rebuild the custom toolbars manually per user.

Is there a way to create a set of toolbars to be used by all users? Or a "global" SQUID code?

Thanks :)

 69 
 on: April 10, 2017, 05:50:11 AM 
Started by bjorn - Last post by bjorn
Hi.

Is the "Accept or Reject Changes" dialog box possible to configure or edit, via the XFT file or maybe code?
After some searching in the XFT files I can't find anyone that is this dialog box, but it seams like this is a XFT dialog box?

What we want to do is to ask if the authors actual want to "accept all changes"  in the document, with a yes/no dialog.

Is it possible to make changes to the "Accept or Reject Changes" dialog box (see attached image)?


Thanks!



 70 
 on: April 10, 2017, 04:59:28 AM 
Started by bjorn - Last post by bjorn
Hi.

I looking into remove some alternatives for the right click menu for the mouse (see attached image).
I see that there is a possibility for removing it completely, but can't find anything for just removing some of the options.
Code:
Application.DisableDocumentContextMenu();

Is there some code that just remove some of the options?


Thanks!


Pages: « 1 2 3 4 5 6 7 8 9 10 »
email us