Changes in the Toolpanel preview¶
Using Toolpanel style preview, the results of a cDRReport run will be presented in a dynamically created ToolPanel object. 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 change is intended for all cDRReport objects, consider subclassing cDRReport into cMyDRReport and set the property in the object constructor message (= construct_object). Then, use this subclass for all cDRReport instances.
Another change to consider is extending the CodeJock toolbar with a new button or removing a button if the standard buttons do not meet the needs of the end-users. To extend the toolbar with a new button, it is necessary to create a subclass of cDRMenuItem, as adding procedures/functions inside the toolbar button in the cDRPreview class is not permitted.