A5.SYSTEM_MODE_SET()

Syntax

:A5.SYSTEM_MODE_SET( Mode as C, Setting as C )

Argument

Description

Mode

One of the values from the Mode column in the table below.

Setting

The value from the Setting column, in the table below, that corresponds to the Mode selection.

Description

The A5.SYSTEM_MODE_SET() method sets a configurable aspect of the Alpha Five environment. The various values for Mode and Setting are:

Mode

Setting

Description

code_editor_auto_help

Nocolor

Turns off color coding in the Code Editor.

interactive_auto_help

Nocomplete

Turns off auto-complete in the Interactive window.

expression_auto_help

Nohelp

Turns off auto-complete in the Expression Builder.

data_entry_style

Modal

Sets the default data entry style to "Modal".

sys_metric_textedit_leftpad

Number

Sets the left padding of Xdialog text edit controls in pixels.

control_panel_refresh_check

True/False

Enables and disables continuous refresh of the Control Panel.

xbasic_error_event_log

t

Causes extended debugging information to be written to the standard Windows event log when an Xbasic script error occurs. To view the Windows event log, click Start > Control Panel > Administrative Tools > Event Viewer.

statusbar_refresh_rate

Number

Sets the status bar refresh rate in seconds. For example ".01" will update the StatusBar every .01 seconds. ".1" will update the StatusBar every .1 seconds.

Setting the Left Padding for Xdialog Text Controls

To set the left padding to 50 pixels.

a5.System_Mode_Set("sys_metric_textedit_leftpad","50")

To get the current setting:

? a5.System_Mode_get("sys_metric_textedit_leftpad")
= "3"

Control Panel Refresh

Alpha Five’s default behavior now disables continuous refresh of the Control Panel. This setting can now be controlled in the Settings dialog box (select View > Settings > Preferences > Advanced > Control Panel ).

As a result of this change, there may be some cases where the Control Panel is slow to update and does not immediately reflect some new object that has been added to the database.

The Xbasic methods to get and set the Control Panel refresh property are:

a5.System_Mode_set("control_panel_refresh_check","True/False")

a5.System_Mode_get("control_panel_refresh_check")

Supported By

Alpha Five Version 5 and Above

Limitations

Desktop applications only.

Examples

The following script sets different aspect of the Alpha Five environment.

a5.SYSTEM_MODE_SET("code_editor_auto_help","nocolor" )

a5.SYSTEM_MODE_SET("interactive_auto_help","nocomplete" )

a5.SYSTEM_MODE_SET("expression_auto_help","nohelp" )

a5.SYSTEM_MODE_SET("data_entry_style","modal")

See Also

Text Box Syntax