Skip to content

WIN32DialogEX

A wrapper that makes WIN32Dialog a little easier to use from Kirikiri. Load it with Scripts.execStorage("win32dialog.tjs"). See that source file and the samples for details.

Extends: WIN32Dialog

Members

Methods


store

Method

Arguments

Arguments Default Description
elm   Template dictionary.
elm = %[ helpID, exStyle, style, x, y, cx, cy, menu, windowClass, title, pointSize, weight, italic, charset, typeFace,
items: [ control1, control2, ... ] ];

Description

Loads a template

For controls, call the control creation functions.


setInitParams

Method

Arguments

Arguments Default Description
elm   Parameter dictionary.

Description

Sets the initialization parameters of the items

Always call this after store(). See win32dialog.tjs and testscript.tjs for the parameters.


open

Method

Arguments

Arguments Default Description
parent  

Return value

%[ result: the nResult value passed to EndDialog, items: dictionary of item states ];

Description

Shows the dialog

Note that the return value differs from WIN32Dialog.open.


setCenterPosition

Method

Arguments

Arguments Default Description
win parent Window (if omitted, the window passed to open is used).
Passing null centers the dialog on the screen.

Description

Centers the dialog on the given window


loadResource

Method

Arguments

Arguments Default Description
dllfile   DLL file (Storages.getPlacedPath/getLocalName are applied automatically).
resource   Dialog resource name.

Description

Loads a dialog resource (override)


DefPushButton

Method

Arguments

Arguments Default Description
text   Text.
id   Control ID.
x   X coordinate (in dialog units).
y   Y coordinate (in dialog units).
w   Width (in dialog units).
h   Height (in dialog units).
style   Style.
ex   Extended style.

Description

Functions for creating the various controls


PushButton

Method

Arguments

Arguments Default Description
text  
id  
x  
y  
w  
h  
style  
ex  

AutoCheckBox

Method

Arguments

Arguments Default Description
text  
id  
x  
y  
w  
h  
style  
ex  

CheckBox

Method

Arguments

Arguments Default Description
text  
id  
x  
y  
w  
h  
style  
ex  

AutoRadioButton

Method

Arguments

Arguments Default Description
text  
id  
x  
y  
w  
h  
style  
ex  

RadioButton

Method

Arguments

Arguments Default Description
text  
id  
x  
y  
w  
h  
style  
ex  

GroupBox

Method

Arguments

Arguments Default Description
text  
id  
x  
y  
w  
h  
style  
ex  

LText

Method

Arguments

Arguments Default Description
text  
id  
x  
y  
w  
h  
style  
ex  

CText

Method

Arguments

Arguments Default Description
text  
id  
x  
y  
w  
h  
style  
ex  

RText

Method

Arguments

Arguments Default Description
text  
id  
x  
y  
w  
h  
style  
ex  

Icon

Method

Arguments

Arguments Default Description
text  
id  
x  
y  
w  
h  
style  
ex  

EditText

Method

Arguments

Arguments Default Description
id  
x  
y  
w  
h  
style  
ex  

ListBox

Method

Arguments

Arguments Default Description
id  
x  
y  
w  
h  
style  
ex  

ComboBox

Method

Arguments

Arguments Default Description
id  
x  
y  
w  
h  
style  
ex