Command PV SET PLUGIN PROPERTY

4D View

PV SET PLUGIN PROPERTY

version 6.8


PV SET PLUGIN PROPERTY (property; value)

ParameterTypeDescription
propertyLongintProperty number
valueLongintProperty value

Description

The PV SET PLUGIN PROPERTY command allows setting of the value of the generic 4D View plug-in property.

This command can be placed, for example, in On Startup Database Method. The defined property is immediately applied to all new 4D View areas.

The property parameter is set using the PV Plugin properties theme constants.

Pass the value to be set for the property in the value parameter. Its content will depend on the defined property.

The following list details the constants that can be used in both the property and value parameters:

pv write template on server

In Client/Server applications, allows writing of 4D View document templates on each client machine. By default, templates are written on the server. Associated values: 0 or 1.

• 0: templates are written on each client machine.

• 1: templates are written on the server.

pv load template on server

In Client/Server applications, allows loading of 4D View document templates from each client machine. By default, templates are loaded from the server. Associated values: 0 or 1.

• 0 : templates are loaded from each client machine.

• 1 : templates are loaded from the server.

pv default columns count

Allows defining of default number of columns in new 4D View documents. This value can always be modified by the user or by programming. By default, new 4D View documents contain 256 columns. Associated values: number of columns.

pv default rows count

Allows defining of default number of rows in new 4D View documents. This value can always be modified by the user or by programming. By default, new 4D View documents contain 8192 rows. Associated values: number of rows.

pv button width

Allows defining of minimum width for areas included within 4D View. If less than this value, the area will be displayed as a button (the user simply clicks on the button to display the area as a full-size window). By default, 4D View areas are displayed as buttons if their width is less than 150 pixels. Associated values: width (in pixels).

pv button height

Allows defining of minimum height for areas included within 4D View. If less than this value, the area will be displayed as a button (the user simply clicks on the button to display the area as a full-size window). By default, 4D View areas are displayed as buttons if their height is less than 100 pixels. Associated values: height (in pixels).

pv confirm convert dialog

Allows displaying or removing of a conversion message when a 4D Calc 6.7 document is opened by 4D View. The displayed message is stored in 4D View resources. Associated values: 0 or 1.

• 0: the confirm message is not displayed.

• 1: the confirm message is displayed.

Example

We would like for all 4D View areas created in the base to be composed initially of 100 columns and 50 rows:

   PV SET PLUGIN PROPERTY(pv default columns count ;100)
   PV SET PLUGIN PROPERTY(pv default rows count ;50)

See Also

PV Get plugin property.

Constants

PV Plugin properties theme.