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.
Figure 1 presents an example - the list of dependencies displayed by the Export Panel .

Figure 1: Log window displaying some information

Depending on the context, the user may want to press the OK or Cancel button, expressing his decision. The information is returned to the parent panel.
In the example above, pressing the OK button will trigger an operation of dependency resolving, and append required objects to user's selection.


Instructions
To accept/confirm:
Press the OK button
To cancel/reject:
Press the Cancel button
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 OK button was pressed
    df[1] 0 Close button was pressed
    dyn_string parameter (ds[])
    ds[] not used: empty variable is always returned.

    Back to the documentation of the fwAccessControl component.

    Piotr Golonka, CERN IT/CO-BE