Forum Discussion
Dmitry_Nikolaev
14 years agoStaff
Hi Jim,
Minimizing the "Step Description" dialog was implemented in TestComplete 7. I recommend that you consider updating to this TC version.
If this suggestion is not acceptable for you, in order to minimize the dialog, to the OnBeforeStep event handler, you can add code that will apply the WS_MAXIMIZE and WS_MINIMIZE styles to the "Step Description" dialog window by using Win32 API functions. Please see the OnBeforeStep Event, Handling Events With TestComplete articles and the following MSDN articles for more information:
http://msdn2.microsoft.com/en-us/library/ms633591.aspx
http://msdn2.microsoft.com/en-us/library/ms633545.aspx
The following script demonstrates this approach:
Minimizing the "Step Description" dialog was implemented in TestComplete 7. I recommend that you consider updating to this TC version.
If this suggestion is not acceptable for you, in order to minimize the dialog, to the OnBeforeStep event handler, you can add code that will apply the WS_MAXIMIZE and WS_MINIMIZE styles to the "Step Description" dialog window by using Win32 API functions. Please see the OnBeforeStep Event, Handling Events With TestComplete articles and the following MSDN articles for more information:
http://msdn2.microsoft.com/en-us/library/ms633591.aspx
http://msdn2.microsoft.com/en-us/library/ms633545.aspx
The following script demonstrates this approach:
Sub GeneralEvents_OnBeforeStep(Sender, StepParams)
Dim wStepDescription
Set wStepDescription = Sys.Process("TestComplete").Window("TtcManualTesting_RunDialogForm")
' Applies the WS_MAXIMIZEBOX and WS_MINIMIZEBOX styles to the window
Call Win32API.SetWindowLong(wStepDescription.Handle, GWL_STYLE, _
wStepDescription.WndStyles OR WS_MAXIMIZEBOX OR WS_MINIMIZEBOX)
' Updates the window
Call Win32API.SetWindowPos(wStepDescription.Handle, HWND_NOTOPMOST, _
0, 0, 0, 0, SWP_NOMOVE OR SWP_NOSIZE OR SWP_NOZORDER OR SWP_FRAMECHANGED)
End Sub
Related Content
- 7 months agomengbinhao
- 3 years agombeckham
Recent Discussions
- 11 hours agoSvetaG