*************************************************************************
* *
* Confidential Trade Secret. *
* Copyright (c) 2011-2012 Mertech Data Systems Inc, Miami Florida *
* All rights reserved. *
* DataFlex is a registered trademark of Data Access Corporation. *
* *
*************************************************************************
TestProject for Windows application
CrystalTest.src (view source)- import declarations
- oHtmlHelp : cHtmlHelp
- oApplication : cApplication
- oMain : Panel
- HandlephoViewMenu
- HandlephoReportMenu
- oCommandBarSystem : cCJCommandBarSystem
- oClientArea : ClientArea
- AutoActivate()
All of the code below are methods and augmentations which makes this work well as a test program. This:
1. Supports an auto-activate feature where all dialogs in the view and report menu are activated upon startup
2. forces the panel to resize if it is not large enough to accomodate all of the views.
This code was placed directly in the testproject template and, therefore, directly in the .src file so
a developer can easily modify this to fit their own needs. It is not expected that these techniques would
get used in actual deployed projects.
special test component code to activate all views and reports. For testing we assume
that you want to see everything.
- IntegerhoMenu
- End_Construct_Object()
Inherited from
Panel
This checks all views within the client area to make sure that they fit within
the client area. If not we will adjust the main panel so everything fits. This
can only be done after the objects are all activated.
special test program augmentation which opens all views and report views and
makes sure that the size of the panel is big enough
- BooleanbAutoActivate
References (0):