Panel Name | fwAccessControl/fwAccessControl_LogWindow.pnl | |||
Introduction |
Log Window panel
This panel is used to display a multi-line message in a window that contains a scrollbar.
Depending on the context, the user may want to press the |
|||
Instructions |
|
|||
Restrictions |
Dollar Parameters | ||
Name | Description | |
$log | The lines of text displayed in the log window; Even though the type of the dollar parameter is string, you may pass multiple lines of text: dyn_string variables passed as string will be restored and each element displayed as separate line; the newline (\n) characters will also be interpretted as end of line marks. The following example code demonstrates how multiple-line text may be passed to the panel: dyn_string df; dyn_string ds; dyn_string logMessage = makeDynString("A requires B", "B requires C \n and requires D"); ChildPanelOnCentralReturn("fwAccessControl/fwAccessControl_LogWindow.pnl", "Unresolved dependencies", makeDynString("$log:"+logMessage, "$text:There were unresolved dependencies", "$text2:Press OK to accept, or Cancel to abort"), df,ds); if (df[1]==1.0) { // OK was pressed } else { // Cancel was pressed } |
required |
$text | The text displayed on the top of the panel | required |
$text2 | The text displayed at the bottom of the panel | optional |
Return Values from panel | ||
The panel should be opened using functions from the
ChildPanel...Returns(... , df,ds) family. When the panel is closed the following values may be returned in the df and ds parameters:
| ||
Variable | Value(s) | Description |
dyn_float parameter (df[] ) | ||
df[1] |
1 |
button was pressed |
df[1] |
0 |
button was pressed |
dyn_string parameter (ds[] ) | ||
ds[] |
|
not used: empty variable is always returned. |