Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter TwentyPageView Integration (continued)

CSSEditDeclaration Function

Overview

The CSSEditDeclaration function calls the CSS Declaration Editor using a declaration string and returns a resulting declaration screen.

Syntax/Parameters

Syntax

string = CSSEditDeclaration ( string declaration, [dword pages],
                                              [string caption], [string base] );

Parameters

declaration

A string containing a standard CSS declaration in the format of “property: value” pairs, separated by semicolons as required. It should not contain open and close braces.

pages

An optional dword specifying which CSS pages to enable. If omitted, all pages are enabled.

caption

An optional string specifying a dialog caption. The default caption is “CSS Properties”.

base

An optional string specifying a base path for the dialog. This is required when any URL is referenced such as a background image.

Return Value

A string containing the declaration data as a series of parameter value pairs or an empty string on error. If the object does not contain any CSS properties, the return string will be empty. Use the GetLastError to retrieve a formatted error code.

Remarks

If the results from the edit do not contain any CSS properties, the returned string will be empty. If the user cancels the operation the return string will be empty and the last error will be ERROR_CANCEL.

Items that can be placed into shorthand properties are processed prior to returning the string.

Dialog tabs can be controlled to allow the user to only see certain properties for editing by setting bits in the pages parameter. Properties that are not available for user editing are not altered. See the introduction of this section for a list of page definitions.

If a base path is not specified, the user will not be able to browse for images.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE