SIMPOL Documentation

Chapter 17. appframework

Table of Contents

The appframework library incorporates the databaseforms, formlib, uisyshelp, filsyslib, db1util, httpclientlib, and others together with its own application and appwindow types to make it fast and easy to create data-aware applications.

application

Description

Type Tags

application

Object Value

Objects of type application have no value, and it is an error to try to get or set this value.

application.new()

Description

Prototype

application.new ( application me, string appiconfile, string iconimagetype, string inifilename, string apptitle )

Parameters

ParameterDefault valueType nameDescription
meNoneapplication
appiconfileNonestring
iconimagetypeNonestring
inifilenameNonestring
apptitleNonestring

Properties

PropertyTypeDescription
SBLlocalelocaleinfoold
_type(*)
__type(*)
adddatasourcefunction
closedatasourcefunction
datasourcesdring
datasourceunusedfunction
deffontwxfont
displayformatstdisplayformats
exitfunction
finddatasrcfunction
inifilenamestring
localelocaleinfo
onexitrequestevent
opendatasourcefunction
ostypeinteger
ppcsppcstype1
runfunction
runningboolean
systeminfosysinfo
titlestring
typetype
windowiconwxbitmap
windowsdring

Methods

adddatasource()

Description

Prototype

applicationvar.adddatasource ( application me, type sourcetype, string source, type(*) datasource, string username, string password, integer retry, integer timeout, integer codepage )

Parameters
ParameterDefault valueType nameDescription
meNoneapplication
sourcetypeNonetype
sourceNonestring
datasourceNonetype(*)
usernameNonestring
passwordNonestring
retryNoneinteger
timeoutNoneinteger
codepageNoneinteger

closedatasource()

Description

Prototype

applicationvar.closedatasource ( application me, datasourceinfo dinfo )

Parameters
ParameterDefault valueType nameDescription
meNoneapplication
dinfoNonedatasourceinfo

datasourceunused()

Description

Prototype

applicationvar.datasourceunused ( application me, datasourceinfo src )

Parameters
ParameterDefault valueType nameDescription
meNoneapplication
srcNonedatasourceinfo

exit()

Description

Prototype

applicationvar.exit ( application me )

Parameters
ParameterDefault valueType nameDescription
meNoneapplication

finddatasrc()

Description

Prototype

applicationvar.finddatasrc ( application me, string sourcename )

Parameters
ParameterDefault valueType nameDescription
meNoneapplication
sourcenameNonestring

newwindow()

Description

Prototype

applicationvar.newwindow ( application me, integer left, integer top, integer width, integer height, string caption, wxmenubar mb, wxtoolbar tb, boolean visible, boolean usestatusbar, wxbitmap icon, boolean horizontalscroll, boolean verticalscroll, boolean visbutton, boolean menubutton, boolean minbutton, boolean maxbutton, string border, integer error )

Parameters
ParameterDefault valueType nameDescription
meNoneapplication
left0integer
top0integer
width200integer
height200integer
captionNonestring
mbNonewxmenubar
tbNonewxtoolbar
visible.trueboolean
usestatusbar.trueboolean
iconNonewxbitmap
horizontalscroll.falseboolean
verticalscroll.falseboolean
visbutton.trueboolean
menubutton.trueboolean
minbutton.trueboolean
maxbutton.trueboolean
bordersizeablestring
errorNoneinteger

opendatasource()

Description

Prototype

applicationvar.opendatasource ( application me, string sourcetype, string source, type(appwindow) appw, string username, string password, integer retry, integer timeout, integer codepage, integer error )

Parameters
ParameterDefault valueType nameDescription
meNoneapplication
sourcetypeNonestring
sourceNonestring
appwNonetype(appwindow)
usernameNonestring
passwordNonestring
retryNoneinteger
timeoutNoneinteger
codepageNoneinteger
errorNoneinteger

run()

Description

Prototype

applicationvar.run ( application me )

Parameters
ParameterDefault valueType nameDescription
meNoneapplication