Chapter 17. appframework
- application
- appwindow
- localeinfoold
- sysinfo
- tableinfo
- tdisplayformats
- __fillindexlist()
- __findformcontrolintoolbar()
- __formcontrolexistsintoolbar()
- checkneedsave()
- clearstatusbar()
- closewindow()
- defer()
- deferprocessing()
- deleterecord()
- doformview()
- doselrec()
- duplicaterecord()
- fieldselection()
- findfirstfocusablecontrol()
- findmenuinmenubar()
- formview()
- getappwindowfromwindow()
- getemptyprompt()
- getmenuitemwindow()
- gettableformatstrings()
- gettablesarray()
- lookup()
- modifyrecord()
- newrecord()
- removedialogfromlist()
- saverecord()
- selectff_rw()
- selectrecord()
- selrec()
- showrecordview()
- showtableview()
- windresize()
- writedataview()
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
,
string me
,
string appiconfile
,
string iconimagetype
,
string inifilename
)
apptitle
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | application | |
appiconfile | None | string | |
iconimagetype | None | string | |
inifilename | None | string | |
apptitle | None | string |
Properties
Property | Type | Description |
---|---|---|
SBLlocale | localeinfoold | |
_ | type(*) | |
__ | type(*) | |
adddatasource | function | |
closedatasource | function | |
datasources | dring | |
datasourceunused | function | |
deffont | wxfont | |
displayformats | tdisplayformats | |
exit | function | |
finddatasrc | function | |
inifilename | string | |
locale | localeinfo | |
onexitrequest | event | |
opendatasource | function | |
ostype | integer | |
ppcs | ppcstype1 | |
run | function | |
running | boolean | |
systeminfo | sysinfo | |
title | string | |
type | type | |
windowicon | wxbitmap | |
windows | dring |
Methods
adddatasource()
Description
Prototype
applicationvar
.adddatasource
(
application
,
type me
,
string sourcetype
,
type(*) source
,
string datasource
,
string username
,
integer password
,
integer retry
,
integer timeout
)
codepage
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | application | |
sourcetype | None | type | |
source | None | string | |
datasource | None | type(*) | |
username | None | string | |
password | None | string | |
retry | None | integer | |
timeout | None | integer | |
codepage | None | integer |
closedatasource()
Description
Prototype
applicationvar
.closedatasource
(
application
,
datasourceinfo me
)
dinfo
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | application | |
dinfo | None | datasourceinfo |
datasourceunused()
Description
Prototype
applicationvar
.datasourceunused
(
application
,
datasourceinfo me
)
src
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | application | |
src | None | datasourceinfo |
exit()
Description
Prototype
applicationvar
.exit
(
application
)
me
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | application |
finddatasrc()
Description
Prototype
applicationvar
.finddatasrc
(
application
,
string me
)
sourcename
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | application | |
sourcename | None | string |
newwindow()
Description
Prototype
applicationvar
.newwindow
(
application
,
integer me
,
integer left
,
integer top
,
integer width
,
string height
,
wxmenubar caption
,
wxtoolbar mb
,
boolean tb
,
boolean visible
,
wxbitmap usestatusbar
,
boolean icon
,
boolean horizontalscroll
,
boolean verticalscroll
,
boolean visbutton
,
boolean menubutton
,
boolean minbutton
,
string maxbutton
,
integer border
)
error
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | application | |
left | 0 | integer | |
top | 0 | integer | |
width | 200 | integer | |
height | 200 | integer | |
caption | None | string | |
mb | None | wxmenubar | |
tb | None | wxtoolbar | |
visible | .true | boolean | |
usestatusbar | .true | boolean | |
icon | None | wxbitmap | |
horizontalscroll | .false | boolean | |
verticalscroll | .false | boolean | |
visbutton | .true | boolean | |
menubutton | .true | boolean | |
minbutton | .true | boolean | |
maxbutton | .true | boolean | |
border | sizeable | string | |
error | None | integer |
opendatasource()
Description
Prototype
applicationvar
.opendatasource
(
application
,
string me
,
string sourcetype
,
type(appwindow) source
,
string appw
,
string username
,
integer password
,
integer retry
,
integer timeout
,
integer codepage
)
error
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | application | |
sourcetype | None | string | |
source | None | string | |
appw | None | type(appwindow) | |
username | None | string | |
password | None | string | |
retry | None | integer | |
timeout | None | integer | |
codepage | None | integer | |
error | None | integer |
run()
Description
Prototype
applicationvar
.run
(
application
)
me
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | application |