General XMetaL Discussion

  • jrob61

    Tooltips XMAX 10.0

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

    when using the XMAX 10.0 control, how can we set tooltips on for the 'Normal View' and 'Tag On View' tabs? The ShowTagsTip property didn't do the trick.

    Reply

    Derek Read

    Reply to: Tooltips XMAX 10.0

    If enabling the ShowTagTips property on the XMAX control does not work (this is a boolean run-time property) that suggests there is a bug in the version of XMAX you have or the host application is somehow interfering with this functionality.

    Testing XMAX 10.0.0.080 hosted in Internet Explorer (inside an HTML page) shows that the feature is working. That suggests the application hosting XMAX in your case is somehow interfering with the feature. Perhaps the host application is only selectively passing some mouse messages through to XMAX. Or perhaps there is something else that the host application is doing with this run-time property, passing in a value that XMAX doesn't understand (a non-boolean value maybe).

    Reply

    Derek Read

    Reply to: Tooltips XMAX 10.0

    To confirm whether this is an XMAX bug we would probably need to know what the host application is, or if it is built by you which language it is written in, and the compile environment and version used to build it.

    Reply

    jrob61

    Reply to: Tooltips XMAX 10.0

    It is a VB.Net application build with Visual Studio 2012. Using XMetaL 10 XMAX Version # 10.0.0.074

    Reply

    Derek Read

    Reply to: Tooltips XMAX 10.0

    I can reproduce this with VB.NET here. We've discovered an old bug in the code dating way back to XMAX 7 when we introduced a bunch of properties that allow you to set things that in XMetaL Author are set using INI settings and through its built-in UI.

    Boolean values for run-time properties sent to XMAX by VB.NET in this case are being read in as -1 and 0 instead of 1 and 0 (what most languages use to represent true and false). The code we have for dealing with these properties should handle them no matter what the containing language is. We'll add fixes for these properties for XMAX 11.

    In the meantime, you can work around this by setting the property after XMAX has been instantiated. Here's a VB example with the important bit highlighted in red:

       Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
           Dim docStr, xacPath As String
           docStr = "this is a testthis is a test"
           xacPath = "C:xacFilesdoc.xac"
           AxXMetaLControl1.LoadFromString(docStr, xacPath, XMetaLControlLib.SQDocViewType.sqViewTagsOn, True)
           AxXMetaLControl1.ShowTagTips = True
           AxXMetaLControl1.Focus()
       End Sub

    Reply

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

Lost Your Password?

Products
Downloads
Support