Scol standard library package
0.3.1
Common and usefull functions for all Scol applications
|
Functions | |
lib2d_dlgGetChannel (strDlg) | |
Get the proprietary channel object of the dialog box. More... | |
lib2d_dlgGetFont (strDlg) | |
Get the font object used by the dialog box. More... | |
lib2d_dlgGetPos (strDlg) | |
Get the initial position of the dialog box. More... | |
lib2d_dlgGetSize (strDlg) | |
Get the size of the dialog box. More... | |
lib2d_dlgGetSpacing (strDlg) | |
Get the spacing of the dialog box. More... | |
lib2d_dlgGetSpacingDefault () | |
Get the default spacing value. More... | |
lib2d_dlgGetText (strDlg) | |
Get the main text of the dialog box. More... | |
lib2d_dlgGetWin (strDlg) | |
Get the window object of the dialog box. More... | |
lib2d_dlgNew () | |
Create a new dialog box object. More... | |
lib2d_dlgSetChannel (strDlg, ch) | |
Set the proprietary channel of the dialog box. More... | |
lib2d_dlgSetFont (strDlg, font) | |
Set the font of the dialog box. More... | |
lib2d_dlgSetFontDefault (strDlg, size) | |
Create the font as the default font. It is the Arial. More... | |
lib2d_dlgSetMother (strDlg, win) | |
Set the window mother object of the dialog box. More... | |
lib2d_dlgSetPos (strDlg, pos) | |
Set the initial position of the dialog box. More... | |
lib2d_dlgSetSize (strDlg, width, height) | |
Set the size of the dialog box. More... | |
lib2d_dlgSetSpacing (strDlg, iSp) | |
Set the spacing between each graphical element of the dialog box. More... | |
lib2d_dlgSetText (strDlg, szText) | |
Set the main text of the dialog box. More... | |
lib2d_dlgSetWin (strDlg, win) | |
Set the window object of the dialog box. This is optional but the developer can customized the window himself/herself. More... | |
lib2d_dlgSetWinFlags (strDlg, lFlags) | |
Set the window flags of the dialog box. More... | |
To create and manage customized dialog boxes
Package to load : lib/2dos/dialog.pkg
Dependancies :
This library is under development yet.
lib2d_dlgSetSize | ( | strDlg | , |
width | , | ||
height | |||
) |
Set the size of the dialog box.
Prototype : fun [L2D_DIALOG I I] I
L2D_DIALOG | : a dialog object |
I | : the new width (in piexel, mini 10 px). Can be nil. |
I | : the new height (in piexel, mini 10 px). Can be nil. |
lib2d_dlgGetSize | ( | strDlg | ) |
Get the size of the dialog box.
Prototype : fun [L2D_DIALOG] [I I]
L2D_DIALOG | : a dialog object |
lib2d_dlgSetPos | ( | strDlg | , |
pos | |||
) |
Set the initial position of the dialog box.
Prototype : fun [L2D_DIALOG I] I
L2D_DIALOG | : a dialog object |
I | : the position to set :
|
lib2d_dlgGetPos | ( | strDlg | ) |
Get the initial position of the dialog box.
Prototype : fun [L2D_DIALOG] I
L2D_DIALOG | : a dialog object |
lib2d_dlgSetWin | ( | strDlg | , |
win | |||
) |
Set the window object of the dialog box. This is optional but the developer can customized the window himself/herself.
Prototype : fun [L2D_DIALOG ObjWin] I
L2D_DIALOG | : a dialog object |
ObjWin | : the window object to set. |
lib2d_dlgGetWin | ( | strDlg | ) |
Get the window object of the dialog box.
Prototype : fun [L2D_DIALOG] ObjWin
L2D_DIALOG | : a dialog object |
lib2d_dlgSetMother | ( | strDlg | , |
win | |||
) |
Set the window mother object of the dialog box.
Prototype : fun [L2D_DIALOG ObjWin] I
L2D_DIALOG | : a dialog object |
ObjWin | : the mother object to set. Can be nil if no parent to set. |
lib2d_dlgSetWinFlags | ( | strDlg | , |
lFlags | |||
) |
Set the window flags of the dialog box.
Prototype : fun [L2D_DIALOG [I r1]] I
L2D_DIALOG | : a dialog object |
[I | r1] : a list of flags to set. Each flag can be one of these following values :
|
lib2d_dlgSetFontDefault | ( | strDlg | , |
size | |||
) |
Create the font as the default font. It is the Arial.
Prototype : fun [L2D_DIALOG I] I
L2D_DIALOG | : a dialog object |
I | : the size (should be > 6, otherwise the size will be set to 6). |
lib2d_dlgSetFont | ( | strDlg | , |
font | |||
) |
Set the font of the dialog box.
Prototype : fun [L2D_DIALOG ObjFont] I
L2D_DIALOG | : a dialog object |
ObjFont | : a scol font object (_CRfont ...). |
lib2d_dlgGetFont | ( | strDlg | ) |
Get the font object used by the dialog box.
Prototype : fun [L2D_DIALOG] ObjFont
L2D_DIALOG | : a dialog object |
lib2d_dlgSetChannel | ( | strDlg | , |
ch | |||
) |
Set the proprietary channel of the dialog box.
Prototype : fun [L2D_DIALOG Chn] I
L2D_DIALOG | : a dialog object |
Chn | : a scol channel object. |
lib2d_dlgGetChannel | ( | strDlg | ) |
Get the proprietary channel object of the dialog box.
Prototype : fun [L2D_DIALOG] Chn
L2D_DIALOG | : a dialog object |
lib2d_dlgSetSpacing | ( | strDlg | , |
iSp | |||
) |
Set the spacing between each graphical element of the dialog box.
Prototype : fun [L2D_DIALOG I] I
L2D_DIALOG | : a dialog object |
I | : a spacing to set. |
lib2d_dlgGetSpacing | ( | strDlg | ) |
Get the spacing of the dialog box.
Prototype : fun [L2D_DIALOG] I
L2D_DIALOG | : a dialog object |
lib2d_dlgGetSpacingDefault | ( | ) |
Get the default spacing value.
Prototype : fun [] I
lib2d_dlgSetText | ( | strDlg | , |
szText | |||
) |
Set the main text of the dialog box.
Prototype : fun [L2D_DIALOG S] I
L2D_DIALOG | : a dialog object |
S | : the main text to set. |
lib2d_dlgGetText | ( | strDlg | ) |
Get the main text of the dialog box.
Prototype : fun [L2D_DIALOG] S
L2D_DIALOG | : a dialog object |
lib2d_dlgNew | ( | ) |
Create a new dialog box object.
Prototype : fun [] L2D_DIALOG
The dialog box is created with the mostly current parameters. The present API can set other values for them. Theses default values are :