Forum Discussion

JDR2500's avatar
JDR2500
Frequent Contributor
28 days ago

Object Spy/IntelliSense not recognizing buttons have name mappings

I'm using version 15.67.1.7 and encountered a problem with TextComplete not recognizing there are name mappings for buttons.  This is reflected in the Object Spy, and IntelliSense when scripting.  Below is a screen capture showing an example.  In this case you can see our application's UI on the left.  There is an "Add" button in this dialog.  The button is mapped, as seen in the center, and has been for years.  However, now when I select it with the Object Spy (right side) it behaves as though it's not mapped.  

 

The Object Browser also indicates it's not mapped even though it is.  If I try to map it again then I get an error saying it's already mapped.

This is happening for pretty much every button in a dialog box and toolbar.  Some of these have been mapped for years and worked fine until just recently.

Also, in scripts using the button mappings still works.  For new scripts I just have to type it in since IntelliSense doesn't recognize the mapping.  As you can see there is no problem with the mapping of the dialog itself.

Anyone else encounter this?  It's really annoying.

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Has you application been updated i.e. the development tools? Are you using MSAA? Has this issue only occurred after updating TC? What are the property values of the mapped object btnAdd?

    • JDR2500's avatar
      JDR2500
      Frequent Contributor

      There are no updates to our application that would explain the issue.  Our tests are backwards compatible with previous versions of our app.  So, I tried it in an older version.  I can reproduce the problem with a version that was released last year and has not been updated/rebuilt since then.

      It's happening for all buttons in dialog boxes and toolbars.  Hence the mapping properties vary.  In one case the button is mapped using WndClass and WndCaption.  The "Add" button in my example is mapped with ObjectType and Caption.

      I believe the problem started occurring after a recent TC upgrade.