Forum Discussion
nishay_patel
11 years agoOccasional Contributor
TopMost is not a property of the Window class in TC
Here is a list of all Window object properties
The problem is, when you show a modal form, test execution is paused. So the properties of the window must be edited before the call to ShowModal is made.
So ideally, it would be
var form = Sys.Process("Test*te").Window("TUserForm", UserForms.UserForm1.Caption, 1);
[edit window properties here]
UserForms.UserForm1.ShowModal();
And it seems like Win32API is the only thing capable of doing this.
Also, the UserForms object itself would also be incapable of this, since it wouldn't have access to all of your operating system's windows.
Here is a list of all Window object properties
The problem is, when you show a modal form, test execution is paused. So the properties of the window must be edited before the call to ShowModal is made.
So ideally, it would be
var form = Sys.Process("Test*te").Window("TUserForm", UserForms.UserForm1.Caption, 1);
[edit window properties here]
UserForms.UserForm1.ShowModal();
And it seems like Win32API is the only thing capable of doing this.
Also, the UserForms object itself would also be incapable of this, since it wouldn't have access to all of your operating system's windows.
Related Content
- 15 years ago
- 3 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago