Forum Discussion

Nimeshika's avatar
Nimeshika
Contributor
9 years ago

A button has no Class and shows enabled property as "true" even when the button is disabled.

Hello,

 

My window has a button which looks like other buttons around it.

1>But it is not having Class as other buttons .

2>The button shows the name "HIS" on it but when I spy the Caption and NativeVBobject is shown just as Label3.

3>When button is enabled or disabled always it shows Enabled property as "True".(Leads to fail my validation when button is disabled)

 

I tried:

1> adding its neighbor button's Class to text recognition.

2>Manually traced for "HIS" name in object browser tree.

 

I am attaching the spied properties:

 

 

Kindly help me validate when the button is disabled.

 

Regards,

Nimeshika

 

 

 

 

 

 

5 Replies

  • m_essaid's avatar
    m_essaid
    Valued Contributor

    hi,

     

    but... don't you filter all the properties with "label3" ??

    • Nimeshika's avatar
      Nimeshika
      Contributor

      Hello m_essaid,

       

      I have just used the filter for the purpose of covering needed properties in the screenshot. 



      • ghuff2's avatar
        ghuff2
        Contributor

        How are you enabling and disabling the button? If you are able to talk to one of your developers you might ask them what happens programmatically when you enable/disable that button. In my testing I've come across a couple buttons where for whatever reason the developer changed different properties instead of the enabled property. For instance one button they changed the visibility instead, and on another they left it enabled for whatever reason but had the attached event handler do nothing.