Well, say have a Textbox on a page mapped with my NameMapping and Aliasing. If I wnated to determine if the content is Editable, I'd do something like this:
function TestCheckBox()
{
if Aliases.MyPage.MyTextBox.isContentEditable
{
Log.Message('Yup, I can edit it')
}
else
{
Log.Warning('Nope, can't do it')
}
}
Essentially, any property or method visible for a component or object in the object spy is fair-game for use in your automation.
In the case of the TMS component, I had to do something LIKE this:
procedure ClickTMSPagerTab(TabName);
var
PageArray, i,MyPage;
begin
PageArray := Aliases.MyApp.MyForm.OfficePageControl.pages //Note I don't remember the exact property names here
for i := 0 to VarArrayHighBound(PageArray)-1 do begin
if PageArray.Caption = TabName then begin
MyPage := PageArray;
break;
end;
Aliases.MyApp.MyForm.OfficePageControl.ActivePage := MyPage;
end;
That's the best I can remember as to how I had to manipulate the stuff. Essentially, the ClickTab and SelectTab weren't working so I had to do effectively what the component does when someone clicks on the tab, basically assign the Active page to the by the page with the selected caption.
Don't know if this gives you any hints as to how to proceed, but this is kind of what I'm talking about.