Changes in the DesktopView preview¶
Using Desktop style preview, the results of a cDRReport run will be presented in a dynamically created dialog component. The default class to create this component is cDRDesktopPreview, 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 cDRDesktopPreview.pkg file and making modifications in that file. Rename the class to something like cMyDRDesktopPreview 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 (= 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, it is necessary to create a subclass of cDRMenuItem, as adding procedures/functions inside the toolbar button in the cDRPreview class is not permitted.