Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter TwoLanguage Overview (continued)

ConsoleOpen Function

Overview

The ConsoleOpen function opens default console window.

Syntax/Parameters

Syntax

int = ConsoleOpen ( [string caption], [string properties] );

Parameters

caption

An optional string for the console window’s caption.

properties

An optional string containing optional properties for the window. To use this parameter, the caption parameter must be provided.

Return Value

Returns an int as ERROR_NONE or a formatted error code on failure.

Remarks

If the default console is already open or the script has been run from a command line without the GUI, the ConsoleOpen function will essentially do nothing. The default console is essential console id 0.

The optional parameter pairs are as follows (names are case-sensitive):

  Background Sets the color of the window background as RGB in HTML, CSS form, or a standard name. The default background color is black.
  Color Sets the text color as RGB in HTML, CSS form, or a standard name. The default color is ‘computer terminal’ green.
  FontName Sets the font name. The font should be a monospaced font.
  FontSize Sets the font size in 10ths of points. Note that depending on the font type, certain size ranges are not available.
  Height Sets the height of the window in lines.
  Scrollbars Adds or removes scrollbars. The default is to add scrollbars.
  Width Sets the width of the window in characters.
  Wrap If set to TRUE or non-zero, text will automatically wrap in the field.

 

Related Functions

Platform Support

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

Legato IDE, Legato Basic