ShowHeadFoot method (DataWindows)
Description
Displays the panels for editing the header and footer in a
RichTextEdit control or hides the panels and returns to editing
the main text.
Controls
|
DataWindow type |
Method applies to |
|---|---|
|
PowerBuilder |
DataWindow control with RichTextEdit presentation |
Syntax
[PowerBuilder]
|
1 |
integer <span>rtename</span>.<span>ShowHeadFoot</span> ( boolean <span>editheadfoot</span>, {<span>headerfooter</span>} ) |
|
Argument |
Description |
|---|---|
|
rtename |
A reference to the DataWindow control |
|
editheadfoot |
A boolean value specifying the editing
|
|
headerfooter (optional) |
A boolean value specifying whether the
|
Return Values
Returns 1 if it succeeds and –1 if an error occurs.
Usage
ShowHeadFoot takes effect when the control
is in preview mode or when it is in edit mode for the main text.
If the control is in preview mode, calling ShowHeadFoot returns
to edit mode. The value of editheadfoot determines
whether the main text or the header and footer panels display.
The headerfooter argument is ignored
if the editheadfoot argument is false.
The headerfooter argument defaults to “true” if
a value is not provided. The header and footer can include input
fields for page numbers and dates.
PowerBuilder RichTextEdit control
You can use the same syntax with any RichTextEdit control.
See ShowHeadFoot in the PowerScript Reference.
See Also
-
Preview for RichTextEdit
controls in the PowerScript Reference