General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion cursor position difference XMAX 10.0 vs XMetaL Author Essential 5.5

  • jrob61

    cursor position difference XMAX 10.0 vs XMetaL Author Essential 5.5

    Participants 2
    Replies 3
    Last Activity 6 years, 4 months ago

    have a preprint process to capture the last cursor position before rendering the document; upon updating the editor's .xml we then known where to preset the cursor.

    Noticing slight difference in cursor positioning in XMAX 10 vs Author Essential 5.5 and wondering if we should be concerned with other code that is utilizing the .Range and .Duplicate code?

    Author Essential 5.5: (working as expected)
            xmHold = gXMApp.ActiveDocument.Range (where gXMApp = XMetaL.Application)
            XMDoc = xmHold.Duplicate
            XMDoc.MoveToDocumentStart()
            …
            xmHold.Select()

    XMAX 10.0: (not working as expected?)
            xmHold = gobjLocalWrapper.XMAXControlDocument.Range  (where gobjLocalWrapper is a class, with a form, with the XMAX control)
            XMDoc = xmHold.Duplicate
            XMDoc.MoveToDocumentStart()
            …
            xmHold.Select()  (…its is positioning the cursor to the right, double the number of characters that were just previously typed in the editor/control?)

    *Note – XMAX 10.0 will work fine if the user does not previously type anything prior to our preprint process code being invoked. Debugging indicates that the .Select is causing the issue?

    Any help appreciated.

    Reply

    Derek Read

    Reply to: cursor position difference XMAX 10.0 vs XMetaL Author Essential 5.5

    Which event is this running in?
    Can you provide (or summarize) what happens in the omitted sections marked with “…”?

    Reply

    jrob61

    Reply to: cursor position difference XMAX 10.0 vs XMetaL Author Essential 5.5

    Which event is this running in? None, the pre-print process is fired from a  toolstrip icon (in XMetaL it would have been fired from our toolbar Print macro). Simply getting ready to insert a at the cursor position.  Once we call the .Select(), it moves the cursors double the number of characters just typed in the XMAX control.

    Regarding the omitted sections, it only applies if the document contains any

    elements.

    Reply

    Derek Read

    Reply to: cursor position difference XMAX 10.0 vs XMetaL Author Essential 5.5

    The quickest way to a solution for this would be to submit a support case to XMetaL Support and include a sample that reproduces the issue. We can then try it here and pass it on to the dev team to debug and see what's changed.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support