Attachmate.Reflection.UserInterface Namespace > IFrame Interface : GetViewByTitleText Method |
void Sample_Frame_GetViewByTitleText() { //You can alert users by placing custom text in a view's titleText. //If you know the titleText, you can retrieve the view object with it. Application app = MyReflection.ActiveApplication; IFrame frame = (IFrame) app.GetObject("Frame"); frame.SelectedView.TitleText = "Alert!"; //... IView view = (IView)frame.GetViewByTitleText("Alert!"); view.Focus(); }