Skip to the content.

hmReports provides a shared component form (included form or subform) for displaying a properties palette for the report and objects. Also it provides a list of available layers, objects and references.

The subform looks like:

Component Palette

How you create the subform

Creating subform palette

Note: The subform must have a width of 400 Pixels and at least a height of 300 Pixels!

Subform property Palette

These are the final settings of the subform:

Subform final settings Palette

How to handle the subform

The hmReports component provides some commands for handle the subform. You need to initialize the subform at the On Load phase of the host form:

Case of 
 : (Form event=On Load)

 hmRep_Palette_Install ("palette";reparea)

End case 

All other code should come after the initialization of the subform. The method hmRep_Palette_Install gets as $1 the name of the subform, which is “palette” in our example. As $2 you should pass the hmReports Plugin Area reference.

Update

Each time the user clicks in the hmReports Plugin Area, the Palette subform has to be updated. So, the plugin Area should update the palette subform if the following events are called:

Events Plugin Area for the Palette

Inside the Plugin Area object method you should place the code for updating the Palette subform:

For example:

hmRep_Palette_Update ("palette";reparea)

The parameter $1 is the name of the subform and $2 is the reference of the Plugin Area.

Switch between pages

You can use the Palette subform and the hmReports on an other page as page 1. Also you can switch to an other page. There is no limitation like the Container.