Dialogs

Functions

ngMessageDlg

function ngMessageDlg(type,
text,
caption,
onclose,
def)

Creates dialog.

Syntax

object ngMessageDlg (string type, string text, string caption [, function onclose = undefined, object def = {}])

Parameters

typedialog control type
textmessage text
captiondialog caption
oncloseon close function callback
defdialog definition

Returns

Created dialog.

Definition specials

DlgLangTxtif true (default) uses proper locale for caption and text (ngTxt).
DlgHtmlEncodeif true (default) encodes HTML special characters in caption and text
DlgShowDialogif true (default) shows dialog after creation

Definition

DlgButtons

...  Type: integer Default value: mbOK

DialogType

...  Type: string Default value: ’ngWindow’

Properties

DialogResult

...  Type: integer

Controls

Message

Message: { Type: 'ngText', L: 15, T: 15, Data: { AutoSize: true } }

ngText

Content

Content: { Type: 'ngPanel', L: 15, R: 15, H: 15 }

ngPanel

Buttons

OK

OK: { Type: 'ngButton', W: 80, Data: { ngText: 'mbOK', Default: true, DialogResult: mbOK } }

ngButton

Yes

Yes: { Type: 'ngButton', W: 80, Data: { ngText: 'mbYes', Default: true, DialogResult: mbYes } }

ngButton

No

No: { Type: 'ngButton', W: 80, Data: { ngText: 'mbNo', DialogResult: mbNo } }

ngButton

Cancel

Cancel: { Type: 'ngButton', W: 80, Data: { ngText: 'mbCancel', Cancel: true, DialogResult: mbCancel } }

ngButton

Definition

AboutSystemInfo

AboutSystemInfo: null

...  Type: array Default value: null

AboutComponents

AboutComponents: null

...  Type: array Default value: null

AboutLibraries

AboutLibraries: null

...  Type: array Default value: null

AboutTrademarks

AboutTrademarks: null

...  Type: array Default value: null

AboutReleaseNotes

AboutReleaseNotes: null

...  Type: array Default value: null

Properties

AppName

AppName: appname

...  Type: string

AppVersion

AppVersion: appver

...  Type: string

AppCopyright

AppCopyright: appcopy

...  Type: string

AppText

AppText: ''

...  Type: string

Controls

AppInfo

function ngMessageDlg(type,
text,
caption,
onclose,
def)
Creates dialog.
This class implements a generic window control.
Message: { Type: 'ngText', L: 15, T: 15, Data: { AutoSize: true } }
ngText
This class implements a generic static text control.
Content: { Type: 'ngPanel', L: 15, R: 15, H: 15 }
ngPanel
This class implements a generic panel control.
This class implements a generic toolbar control.
OK: { Type: 'ngButton', W: 80, Data: { ngText: 'mbOK', Default: true, DialogResult: mbOK } }
ngButton
This class implements a generic button control.
Yes: { Type: 'ngButton', W: 80, Data: { ngText: 'mbYes', Default: true, DialogResult: mbYes } }
ngButton
No: { Type: 'ngButton', W: 80, Data: { ngText: 'mbNo', DialogResult: mbNo } }
ngButton
Cancel: { Type: 'ngButton', W: 80, Data: { ngText: 'mbCancel', Cancel: true, DialogResult: mbCancel } }
ngButton
AboutSystemInfo: null
...
AboutComponents: null
...
AboutLibraries: null
...
AboutTrademarks: null
...
AboutReleaseNotes: null
...
AppName: appname
...
AppVersion: appver
...
AppCopyright: appcopy
...
AppText: ''
...
This class implements a generic list control.
Close