Changes in MDI style preview¶
Using MDI style preview, the results of a cDRReport run will be presented in a dynamically created MDI (view) component. The default class to create this component is cDRPreview, and the class identifier is stored in the property phcPreviewer in the cDRReport object.
Changes in the layout of the view can be best accomplished by copying the cDRPreview.pkg file and making modifications in that file. Rename the class to something like cMyDRPreview and register this class in the cDRReport object(s) that require a different layout. If this is intended for all cDRReport objects, consider subclassing cDRReport into cMyDRReport and set the property in the object constructor message (i.e., construct_object). Then, use this subclass for all cDRReport instances.
One potential change is to extend the CodeJock toolbar by adding a new button or removing an existing button if the standard buttons do not meet the needs of the end-users. To extend the toolbar with a new button, you must create a subclass of cDRMenuItem, as adding procedures/functions inside the toolbar button in the cDRPreview class is not permitted.