Home Forums General XMetaL Discussion Tooltips XMAX 10.0 Reply To: Tooltips XMAX 10.0

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
   End Sub