4D View v14PV SET AREA PROPERTY |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D View v14
PV SET AREA PROPERTY
|
PV SET AREA PROPERTY ( area ; property ; value ) | ||||||||
Parameter | Type | Description | ||||||
area | Longint |
![]() |
4D View area | |||||
property | Longint |
![]() |
Property number | |||||
value | Longint |
![]() |
Property value | |||||
The PV SET AREA PROPERTY command sets the value of the property for the specified 4D View area.
Only the properties preferences of areas displayed on screen—present in a form, associated with a field or not — are saved:
If area is set to 0, the PV SET AREA PROPERTY command will be applied to all new 4D View areas. In this case, it is better to call it using the On Startup Database Method, executed when the database is opened.
The PV Area properties constants are used to define the property parameter. To define the value parameter, use the appropriate constant themes or pass a specific value. The following table details each PV Area properties constant and the corresponding value parameters:
Constant | Type | Value | Comment |
pv allow undo redo | Longint | 39 | Allows (or not) the use of the undo function. Associated values:
|
pv arrow keys | Longint | 9 | Allows defining the use of the arrow keys to validate data entry (validation and selection of the next cell). The validation is carried out only when the cursor is placed at the beginning or end of the cell content. Associated values: constants of the PV Arrow keys theme.
|
pv carriage return | Longint | 8 | Allows the creation of new lines in a cell (multi-line cells). Associated values: constants of the PV Carriage return theme.
|
pv column headers height | Longint | 21 | Allows setting or reading of the column headers' height in the area. Associated values: headers' height (in pixels). |
pv copy hidden | Longint | 19 | Allows the setting of whether the hidden elements included in the area must be taken into account when cells are copied. Associated values:
|
pv current cell highlight | Longint | 3 | Allows setting of the highlighting for the current cell in the area. Associated values:
|
pv drag allowed | Longint | 13 | Allows setting of the type of selection that can be dragged. Associated values: constants of the PV Drag drop allowed theme.
Note: You can add several constants for the same area. For example, PV SET AREA PROPERTY(area; pv drag allowed; pv DD multiple cells + pv DD single column + pv DD adjacent rows) allows dragging of a selection containing either multiple cells or a single column or adjacent rows. |
pv drag trigger | Longint | 12 | Allows the definition of the drag trigger in the area. There is no specific trigger for the drop. Associated values: constants of the PV Triggers theme.
Note: When the same trigger is defined for both drag and selection, the drag trigger has priority. |
pv drop allowed | Longint | 33 | Allows setting of the type of selection which can be dropped in the area. Associated values: constants of the PV Drag drop allowed theme.
Note: You can add several constants for the same area. For example, PV SET AREA PROPERTY(area; pv drop allowed;pv DD multiple cells + pv DD single column + pv DD adjacent rows) allows the dropping of a selection containing either multiple cells or a single column or adjacent rows. |
pv drop mode | Longint | 14 | Allows setting of how a dragged selection can be dropped in the area. Note that this property only defines the way in which the dragged values will be pasted into the drop area; the copy of the dragged values (if any) must be managed separately. Associated values: constants of the PV Drop mode theme.
|
pv field tag | Longint | 17 | Allows setting of the field separator. This property is useful for data import/export only. Associated values: character ASCII code. Example : "E1Field1", "E1Field2", "E1Field3"; "E2Field4", "E2Field5"; The comma is the field separator. |
pv field wrapper | Longint | 18 | Allows setting of the field wrapper. This property is useful for data import/export only. Associated values: character ASCII code. Example : "E1Field1", "E1Field2", "E1Field3"; "E2Field4", "E2Field5"; The quotes are the field wrappers. |
pv headers sort | Longint | 20 | Lets you allow or forbid the standard sorting of data when a column header is clicked (dynamic or static data). Associated values: the following constants of the PV Header sort theme.
|
pv hor pane count | Longint | 11 | Allows the reading of the number of horizontal panes in the area. This constant can only be read using the PV Get area property command. Returned values: pane count. |
pv input enter key mode | Longint | 15 | Allows setting of the action of the Enter key (numeric keypad) when pressed during data entry. Associated values: constants of the PV Input enter key mode theme.
Note: Unlike the Enter key, the Tab and Carriage Return keys only select cells. |
pv input trigger | Longint | 6 | Allows setting of the input trigger(s) in the area. Data entry can only be carried out in the current active cell. Associated values: the following constants of the PV Triggers theme:
Notes:
|
pv record tag | Longint | 16 | Allows setting of the record separator. This property is useful for data import/export only. Associated values: character ASCII code. Example : "E1Field1", "E1Field2", "E1Field3"; "E2Field4", "E2Field5"; The semicolon is the record separator (2 records: E1 and E2). |
pv resizable columns | Longint | 4 | To allow (or not) column resizing. Associated values:
|
pv resizable rows | Longint | 5 | To allow (or not) row resizing. Associated values:
|
pv row headers width | Longint | 22 | Allows setting or reading of the row headers' width in the area. Associated values: headers' width (in pixels). |
pv saving dialog | Longint | 37 | Allows displaying (or not) of the Save document confirmation alert when a 4D View document which has been modified is closed. This alert is displayed when a 4D View included area—not associated with a database field— is exited (the form is validated or canceled). This property is not valid for external 4D View windows. Associated values:
|
pv select highlight | Longint | 1 | Allows setting of the highlighting for cell selections in the area. Associated values:
|
pv select mode | Longint | 0 | Allows setting of the selection actions allowed for the area. Associated values: constants of the PV Select mode theme.
|
pv select null | Longint | 2 | To allow (or not) areas without a current selection. Associated values:
|
pv select trigger | Longint | 7 | Allows setting of the selection trigger(s) in the area. Associated values: the following constants of the PV Triggers theme:
Notes:
|
pv show borders toolbar | Longint | 29 | Allows showing or hiding of the 4D View Borders toolbar in the area. Associated values:
|
pv show column headers | Longint | 23 | Allows showing or hiding of the area column headers. Associated values:
|
pv show formula toolbar | Longint | 30 | Allows showing or hiding of the 4D View Formula toolbar in the area. Associated values:
|
pv show hor grid | Longint | 31 | Allows showing or hiding of the 4D View horizontal grid within the area. Associated values:
|
pv show hor scrollbar | Longint | 34 | Allows showing or hiding of the 4D View horizontal scrollbar within the area. Associated values:
|
pv show menu bar | Longint | 25 | Allows showing or hiding of the 4D View Menu bar in the area. Associated values:
|
pv show numbers toolbar | Longint | 27 | Allows showing or hiding of the 4D View Numbers toolbar in the area. Associated values:
|
pv show row headers | Longint | 24 | Allows showing or hiding of the area row headers. Associated values:
|
pv show selection | Longint | 40 | Allows setting or getting the selection display mode in a 4D View area not having the focus. Associated values:
|
pv show standard toolbar | Longint | 26 | Allows showing or hiding of the 4D View Standard toolbar in the area. Associated values:
|
pv show style toolbar | Longint | 28 | Allows showing or hiding of the 4D View Style toolbar in the area. Associated values:
|
pv show vert grid | Longint | 32 | Allows showing or hiding of the 4D View vertical grid within the area. Associated values:
|
pv show vert scrollbar | Longint | 35 | Allows showing or hiding of the 4D View vertical scrollbar within the area. Associated values:
|
pv vert pane count | Longint | 10 | Allows the reading of the number of vertical panes in the area. This constant can only be read using the PV Get area property command. Returned values: pane count. Reminder: A pane is the area located between two splitters (a splitter can be horizontal or vertical). |
pv zoom factor | Longint | 36 | Allows setting or reading of the zoom value (in percent) for the area. Associated values: zoom rate included between 25 and 1000. |
To freeze column size in a 4D View area or to authorize resizing if this function is frozen, we will write the following method which will carry out the "switch":
C_INTEGER($Value) `Property value
`Current value (0: froze, 1 = authorized)
$Value:=PV Get area property(Area;pv resizable columns)
`Switching command : 0 <-> 1
PV SET AREA PROPERTY(Area;pv resizable columns;Num($Value=0))
Product: 4D View
Theme: PV Area
Number:
15996
Modified: 4D View 2004
4D View Language ( 4D View v11.4)
4D View Language ( 4D View v12)
4D View Language ( 4D v13)
4D View Language ( 4D View v14 R2)
4D View Language ( 4D View v14)
4D View Language ( 4D View v14 R3)
4D View Language ( 4D View v14 R4)