Pages: « 1 2 3 4 5 6 7 8 9 10 »
 21 
 on: June 09, 2017, 11:01:23 AM 
Started by jshick - Last post by jshick
I'm using Xmetal Author Enterprise 11. I need to fix a form that works in PlainTextView to work in TagsOnView. Basically, the user enters a reference number (e.g.: 101) and the form cycles through all <ref-callout> elements that have an href of "r101". I need to reprogram the script so that it will work in NormalView.

I have the following macro which calls a form:

<MACRO name="find-ref-callout" key="" lang="JScript" hide="true"><![CDATA[
var dlg = Application.CreateFormDlg(Application.Path + "\\Forms\\find-ref-callout.xft");
dlg.DoModal();
dlg = null;
]]></MACRO>

The form has an EditBox and a Search button. The onClick event for the search button is associated with this function:

Sub Button1_OnClick()
   findText = "<ref-callout href=""r" + EditBox1.Text + """"
   Selection.Find.Execute findText,"","",,,,boolForward=False
End Sub

Thanks!
Jeff


 22 
 on: June 08, 2017, 04:12:36 PM 
Started by MichaelLohr - Last post by XMetaLOldTimer
You should be able to cancel the drop but you need to implement the _IXMetaLControlEvents::OnDrop event sink function in your application.  The XMAX OnDrop event sink has this signature:

HRESULT OnDrop(IDataObject* dropDataObject, LONG keyState, LONG X, LONG Y, IntegerRefVar* dropEffect, Range* dropPoint, BoolRefVar* handled)

If you set "handled" to VARIANT_TRUE and dropEffect to DROPEFFECT_NONE (from Win32 constants), that should do it.

Regards,
Addam

 23 
 on: June 08, 2017, 02:41:29 AM 
Started by MichaelLohr - Last post by MichaelLohr
Hello,

we are using XMAX Version 10 as embedded contol in a win forms application.

If the user drag and drops a image from the windows explorer into the XMAX control a "Graphic" element showing
the image is inserted.
Is is possible to prevent this behaviour by configuration or code.

I tried to register for the "OnDragDrop"-Event but this is only fired after the "Graphic" element is still inserted.

Do you have any suggestions to solve this problem.
Thanks in advance.

Best regards,
Michael



 24 
 on: May 31, 2017, 10:48:43 AM 
Started by ffhum - Last post by ffhum
Product: XMetal Author Enterprise 11.0.0.088; XMetal for Documentum WebTop 11.0.0.0;
OS: Windows 7/Windows 10

In the configure output, Advanced tab, the following is listed:
DITA_OT_DIR  =  %XMETAL_SHARED_ALL%\DITA_OT2.2

Where is %XMETAL_SHARED_ALL% defined?
When attempting to Preview, the following is in the .log:
...
Quote
C:\Windows>set ANT_PARAM_ALL= -Ddita.temp.dir=\DITA_OT2.2\temp -Ddita.dir=\DITA_OT2.2 -Ddita.dtd.dir=\DITA_OT2.2/page-preview/dtd -Ddita.resource.dir=\DITA_OT2.2/page-preview/build-resources -Dargs.xmfo.java_maxmemory=1024m -Dargs.logdir=C:\Users\abc1234\AppData\Local\Temp\XMetaL\RENDIT~1\log -Dargs.indexshow=no -Dargs.artlbl=no -Dargs.draft=no -Dargs.xsl=\DITA_OT2.2/page-preview/dita2html.xsl -Dargs.css=\DITA_OT2.2\page-preview\build-resources\humana-mentor.css -Dargs.hdr=\DITA_OT2.2\page-preview\build-resources\header.xml -Dargs.ftr=\DITA_OT2.2\page-preview\build-resources\header.xml -Ddita.ext=.xml
...
C:\Windows>pushd "\DITA_OT2.2"
The system cannot find the path specified.
...
the xm_dita_envar.bat/dita.bat files in same location have:
Quote
set ANT_PARAM_ALL= -Ddita.temp.dir=%XMETAL_SHARED_ALL%\DITA_OT2.2\temp -Ddita.dir=%XMETAL_SHARED_ALL%\DITA_OT2.2 -Ddita.dtd.dir=%XMETAL_SHARED_ALL%\DITA_OT2.2/page-preview/dtd -Ddita.resource.dir=%XMETAL_SHARED_ALL%\DITA_OT2.2/page-preview/build-resources -Dargs.xmfo.java_maxmemory=1024m -Dargs.logdir=C:\Users\abc1234\AppData\Local\Temp\XMetaL\RENDIT~1\log -Dargs.indexshow=no -Dargs.artlbl=no -Dargs.draft=no -Dargs.xsl=%XMETAL_SHARED_ALL%\DITA_OT2.2/page-preview/dita2html.xsl -Dargs.css=%XMETAL_SHARED_ALL%\DITA_OT2.2\page-preview\build-resources\humana-mentor.css -Dargs.hdr=%XMETAL_SHARED_ALL%\DITA_OT2.2\page-preview\build-resources\header.xml -Dargs.ftr=%XMETAL_SHARED_ALL%\DITA_OT2.2\page-preview\build-resources\header.xml -Ddita.ext=.xml
...
set DITA_OT_DIR=%XMETAL_SHARED_ALL%\DITA_OT2.2
...
pushd "%DITA_OT_DIR%"
...
So it appears that %XMETAL_SHARED_ALL% is not getting set for some reason.

 25 
 on: May 24, 2017, 01:52:17 PM 
Started by C4 - Last post by Derek Read
XMetaL Developer doesn't allow you to make changes to portions of the software that are compiled. Any dialogs that are compiled into the software are effectively unchangeable. Writing Tools (which is actually a separate application), aka the spell checker, is one of these. You would need to use some form of DLL hacking tool that lets you make changes to compiled software to make changes to it, and of course I cannot recommend that.

XMetaL Developer is used to create customizations for XMetaL Author and XMAX, and it includes a form building tool that lets you build dialogs ("XFT" forms) that can be run by both of these applications. So, in theory you could try to recreate the entire spell checking UI using XFT but that would be a huge amount of work, and I don't think there are enough APIs provided in our software related to spell checking that would allow you to recreate all the features.

 26 
 on: May 23, 2017, 07:17:05 PM 
Started by C4 - Last post by C4
Do you think that if we had XMetaL developer, we would be able to to customise the Spell Checker options or even write something that will do the same job?

Thanks

 27 
 on: May 23, 2017, 03:29:44 PM 
Started by Derek Read - Last post by Derek Read
This topic has been moved to DITA and XMetaL Discussion.

http://forums.xmetal.com/index.php?topic=3889.0

 28 
 on: May 21, 2017, 01:50:56 AM 
Started by spinkas - Last post by spinkas
Thanks!

 29 
 on: May 17, 2017, 01:21:06 PM 
Started by C4 - Last post by Derek Read
That option enables prompting when a word will be replaced from the User Word List. When disabled anything listed in your User Word List is automatically replaced by the corresponding word without prompting.

 30 
 on: May 15, 2017, 06:10:11 PM 
Started by C4 - Last post by C4
That was exactly what we needed.

I changed the line rng4.MoveRight(); in the find an rdquo section to rng4.MoveLeft(); so it wouldn't select the rdquo.

Thanks so much for your help.

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