Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter TwentyPageView Integration (continued)

CSSEditProperties Function

Overview

The CSSEditProperties function calls the CSS Declaration Editor using a string array of properties and returns an edited string array.

Syntax/Parameters

Syntax

string [] = CSSEditProperties ( string[] properties, [dword pages],
                                                 [string caption], [string base] );

Parameters

properties

A string array containing a standard CSS data in the form of element each with key name as the property name and data.

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 array contain the property values with the property names as key names or an empty array on error. Use the GetLastError to retrieve a formatted error code.

Remarks

If the current element does not contain any CSS properties, the returned string array will have zero elements. If the user cancels the operation the return array will be empty and the last error will be ERROR_CANCEL.

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 if this section for a list of page definitions.

Related Functions

Platform Support

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

Legato IDE