This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
WP SET FRAME
|
WP SET FRAME ( {* ;} wpArea ; frameSelector {; textBoxID} ) | ||||||||
Parameter | Type | Description | ||||||
* | Operator |
![]() |
If specified, wpArea is a form object name (string). If omitted, wpArea is an object field or variable. | |||||
wpArea | String |
![]() |
Form object name (if * is specified) or 4D Write Pro object variable or field (if * is omitted) | |||||
frameSelector | Longint |
![]() |
Frame where the cursor should be set | |||||
textBoxID | String |
![]() |
Id of the text box where the cursor should be set | |||||
The WP SET FRAME command sets the cursor into the frame designated by frameSelector and optionally, textBoxID, in the 4D Write Pro wpArea area.
If you pass the optional * parameter, you indicate that wpArea is a form object name (string). If you do not pass this parameter, you indicate that wpArea is a 4D Write Pro object variable or field.
Note: This command can only be used if the wpArea is associated with a form object (i.e. it is displayed in the current form/page).
You can pass in frameSelector one of the following constants from the 4D Write Pro Constants theme:
Constant | Type | Value | Comment |
wk body | Longint | 0 | Body frame of the section |
wk current page footer | Longint | 2 | |
wk current page header | Longint | 1 | |
wk current section default footer | Longint | 10 | Default footer of the section (available only if there is no active subsection footer) |
wk current section default header | Longint | 9 | Default header of the section (available only if there is no active subsection header) |
wk current section first footer | Longint | 4 | Footer of the first page of the section |
wk current section first header | Longint | 3 | Header of the first page of the section |
wk current section left footer | Longint | 6 | Footer of the left page(s) of the section |
wk current section left header | Longint | 5 | Header of the left page(s) of the section |
wk current section right footer | Longint | 8 | Footer of the right page(s) of the section |
wk current section right header | Longint | 7 | Header of the right page(s) of the section |
wk text box | Longint | 11 | Text box |
If frameSelector = wk text box, you must pass the textBoxID parameter with the id of the text box in which to set the focus. In this case, if textBoxID is omitted or if there is no text box with the specified id or if there is no page corresponding to the anchor conditions of the text box, the command does nothing. The textBoxID parameter is ignored if frameSelector # wk text box.
You want to set the cursor to the left footer of the current section:
WP SET FRAME(*;"WPArea";wk current section left footer)
Product: 4D
Theme: 4D Write Pro Language
Number:
1518
Created: 4D v16 R5
Modified: 4D v19 R8
4D Write Pro Reference ( 4D v20 R7)