Forum Replies Created
-
Progresso March 19, 2010 at 12:02 am
Reply To: Join multiple changes into a single change/update event in XMetaL Author
March 19, 2010 at 12:02 amParticipants 0Replies 2Last Activity 12 years, 10 months agoThank you Derek,
Your reply helped me a lot.
I have now changed the code thus grouping multiple events into a single undoable action inside a single macro.
In a couple of places I needed to control the flickering with ActiveDocument.FormattingUpdating=false/true
All this was resolved neatly, with only one remaining problem:
When I prompted the user with Application.Confirm() before performing a large number of DOM modifications, the processing became MUCH slower than without the prompt.
It seems like the mere appearance of a modal dialog creates problems.
I solved the problem by creating an XFT window with yes/no buttons, and performing the large number om DOM modifications from within the window.
Best regards
BoProgresso March 8, 2010 at 6:33 pm
Reply To: Prevent view change to Plain Text in XMetaL Author
March 8, 2010 at 6:33 pmParticipants 0Replies 2Last Activity 12 years, 11 months agoThanks Derek
I was unaware of the existence of Application.DisablePlainTextView()
I can see that it's supposed to be called from the On_Application_Open event, but this cannot be allowed in my client's case since they used the samme application settings for many users that open a variety of document types. Some of these users might enjoy the Plain Text view so I cannot just disable it for all.
However, I have tested Application.DisablePlainTextView() from one of the “document macros”, the On_Macro_File_Load event. This allows me to prevent Plain Text view only for selected document types (Schemas). It works fine in version 4.6 so I'll keep it. Hope that it also works in version 5.x/6.x.
You solved my problem 🙂
Bo
Progresso January 5, 2010 at 2:33 pm
Reply To: Highlighting current XML element with CSS
January 5, 2010 at 2:33 pmParticipants 0Replies 2Last Activity 13 years, 1 month agoThank you Derek Read and Tom Magliery.
On our system I not sure that I cannot always rely on write access for creating a CSS file. Furthermore, the id attribute is not always present, and the attributes that are always present are not always unique.
I have therefore decided to flash the selection on-off as Tom suggests.
Regards
Bo -
AuthorPosts