General XMetaL Discussion
jrob61 May 5, 2016 at 3:25 pm
Tooltips XMAX 10.0May 5, 2016 at 3:25 pmParticipants 3Replies 4Last Activity 6 years, 8 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.Derek Read May 5, 2016 at 10:27 pm
Reply to: Tooltips XMAX 10.0May 5, 2016 at 10:27 pm
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).Derek Read May 6, 2016 at 12:01 am
Reply to: Tooltips XMAX 10.0May 6, 2016 at 12:01 am
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.jrob61 May 6, 2016 at 4:38 pm
Reply to: Tooltips XMAX 10.0May 6, 2016 at 4:38 pm
It is a VB.Net application build with Visual Studio 2012. Using XMetaL 10 XMAX Version # 10.0.0.074Derek Read May 6, 2016 at 6:01 pm
Reply to: Tooltips XMAX 10.0May 6, 2016 at 6:01 pm
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 test this is a test"
xacPath = "C:xacFilesdoc.xac"
AxXMetaLControl1.LoadFromString(docStr, xacPath, XMetaLControlLib.SQDocViewType.sqViewTagsOn, True)
AxXMetaLControl1.ShowTagTips = True
- You must be logged in to reply to this topic.