Forum Discussion

valentine's avatar
valentine
Contributor
14 years ago

Disabled object is shown as enabled

Hello,



I have a series of buttons in my application, some of the buttons are 'disbaled', I can see it but at the object browser in TC, it shows them as 'enabled'.



So, in my code, when I test for 'obj.Enabled' I get true, and when I click it, I get the erro:" attempt to click an object which is invisble or out of bounds'. Is there another way to find 'Enable' prperty of the object?.

4 Replies

  • The buttons are a 'TCoolBtn' button type. In Delphi application, it is disbaled but not in TC.
  • Hi,



    Try using the NativeDelphiObject.Enabled property. Can you do this? Does it have the correct value?
  • Hi,

    I cannot do the 'NativeDelphiObject.Enabled'.



    This feature is not accesilbe. The only NativeDelphiObject features I have access to are(Height, width,Left,Top, and 'Name' Property that is empty)
  • Hi,



    In this case, I recommend that you look at your object in the Object Browser and try to find a native property or method which will tell you the object's state. You have to do this, because your object doesn't set its 'enabled' state as a regular window would do. When TC queries information about its state in the standard way, it always gets True.



    Before searching for the needed property, enable the Advanced view in the Object Browser (see the "Basic and Advanced View Modes" help topic).