Please enable JavaScript to view this site.

ESL Documentation

These routines are defined in OSUtil.inc which can be found in the ...\Samples\WinUtil directory of an ESL developer installation.

All names declared in this file are prefixed "OS_".  Any  program employing this file should avoid defining names with this prefix. This will avoid current and future name clashes.

This library contains miscellaneous functions that will be of use to the more advanced ESL developer. They are based on ESL's external DLL call interface to access standard operating system APIs.

The functions include:

Accessing the standard File Open and File Save As dialogs.

Querying the state of the keyboard Shift/Ctrl/Alt keys.

Querying the mouse coordinates, mouse left/right button states, and the name of the ESL object the mouse is currently over.

Setting and querying the selected text in an Entry Field; setting the cursor position in an entry field (including multi-line Entry fields).

Standard Edit Cut/Copy/Paste/Delete functions.

Conversion between dialog units and ESL graphical units.

Querying the system millisecond timer.

Querying the Windows environment string (PATH, USERID, etc.).

Looking up the name of the ESL object with a given handle.

Making multi-line entry fields read-only (while still allowing scrolling and selection of text for Edit Copy).

Calculating the width of a text string in a specified proportional font.