fglgallery: Image gallery module

Table 1. fglgallery types (fglgallery.4gl)
Type Description
PUBLIC TYPE t_struct_value RECORD
    current INTEGER,
    selected DYNAMIC ARRAY OF INTEGER
  END RECORD
The t_struct_value type holds image selection data.
Table 2. fglgallery functions (fglgallery.4gl)
Constant Description
addImage(
   id SMALLINT,
   path STRING,
   title STRING )
Adds a picture resource to an fglgallery.
clean( id SMALLINT )
Removes all pictures from an fglgallery.
create( name STRING )
  RETURNS SMALLINT
Creates a new fglgallery handle.
deleteImages(
   id SMALLINT,
   indexes DYNAMIC ARRAY OF INTEGER )
  RETURNS STRING
Deletes pictures used in an fglgallery.
destroy( id SMALLINT )
Frees resources allocated for an fglgallery.
display(
   id SMALLINT,
   type INTEGER,
   size INTEGER )
Displays an fglgallery to the end user.
finalize( )
Releases the fglgallery library.
flush( id SMALLINT )
Displays new added images to the end user.
getImageCount( id SMALLINT )
  RETURNS INTEGER
Returns the number of pictures in an fglgallery.
getPath(
   id SMALLINT,
   index STRING )
  RETURNS STRING
Returns the URL of a picture in an fglgallery.
getTitle(
   id SMALLINT,
   index STRING )
  RETURNS STRING
Returns the description of a picture in an fglgallery.
initialize( )
Prepares the fglgallery library for use.
setAspectRatio(
   id SMALLINT,
   ratio DECIMAL(5,2) )
Prepares the fglgallery library for use.
setMultipleSelection(
   id SMALLINT,
   on BOOLEAN )
Prepares the fglgallery library for use.