Project

General

Profile

Scol standard library package  0.3.1
Common and usefull functions for all Scol applications
dialog.pkg File Reference

Customized dialog boxes API. More...

Classes

struct  L2D_DIALOG
 Opaque internal structure. You should not call it directly, use API instead ! More...

Typedefs

typedef struct mkL2D_DIALOG L2D_DIALOG

Functions

 lib2d_dlg_crwindow (strDlg)
 lib2d_dlg_getsizestr (strDlg)
 lib2d_dlg_init ()
 lib2d_dlgAbout ()
 lib2d_dlgGetChannel (strDlg)
 Get the proprietary channel object of the dialog box.
 lib2d_dlgGetFont (strDlg)
 Get the font object used by the dialog box.
 lib2d_dlggeticonname (l, iType)
 lib2d_dlgGetPos (strDlg)
 Get the initial position of the dialog box.
 lib2d_dlgGetSize (strDlg)
 Get the size of the dialog box.
 lib2d_dlgGetSpacing (strDlg)
 Get the spacing of the dialog box.
 lib2d_dlgGetSpacingDefault ()
 Get the default spacing value.
 lib2d_dlgGetText (strDlg)
 Get the main text of the dialog box.
 lib2d_dlgGetWin (strDlg)
 Get the window object of the dialog box.
 lib2d_dlgNew ()
 Create a new dialog box object.
 lib2d_dlgsetbuttons (lBut, strDlg)
 lib2d_dlgSetButtons (strDlg, lBut)
 lib2d_dlgSetChannel (strDlg, ch)
 Set the proprietary channel of the dialog box.
 lib2d_dlgSetFont (strDlg, font)
 Set the font of the dialog box.
 lib2d_dlgSetFontDefault (strDlg, size)
 Create the font as the default font. It is the Arial.
 lib2d_dlgSetMother (strDlg, win)
 Set the window mother object of the dialog box.
 lib2d_dlgSetPos (strDlg, pos)
 Set the initial position of the dialog box.
 lib2d_dlgSetSize (strDlg, width, height)
 Set the size of the dialog box.
 lib2d_dlgSetSpacing (strDlg, iSp)
 Set the spacing between each graphical element of the dialog box.
 lib2d_dlgSetText (strDlg, szText)
 Set the main text of the dialog box.
 lib2d_dlgSetWin (strDlg, win)
 Set the window object of the dialog box. This is optional but the developer can customized the window himself/herself.
 lib2d_dlgSetWinFlags (strDlg, lFlags)
 Set the window flags of the dialog box.

Variables

var L2D_DIALOG_BUTTONAPPLY = 4
var L2D_DIALOG_BUTTONCANCEL = 2
var L2D_DIALOG_BUTTONNO = 3
var L2D_DIALOG_BUTTONOK = 0
var L2D_DIALOG_BUTTONOTHER = 99
typeof L2D_DIALOG_BUTTONTYPEICONS = [[I S S] r1]
var L2D_DIALOG_BUTTONYES = 1
typeof L2D_DIALOG_FLAGDND = I
typeof L2D_DIALOG_FLAGDOWN = I
typeof L2D_DIALOG_FLAGMENU = I
typeof L2D_DIALOG_FLAGNOBORDER = I
typeof L2D_DIALOG_FLAGNOSCOL = I
typeof L2D_DIALOG_FLAGTOP = I
var L2D_DIALOG_POSCENTER = 0
var L2D_DIALOG_POSMOUSE = 1
typeof L2D_DIALOG_SPACING = I
var L2D_DIALOG_TYPETREE = 0

Detailed Description

Customized dialog boxes API.

Author
Scol team
Version
0.1
Remarks
The packages lib/std/stdlib.pkg , lib/2dos/bitmap.pkg must be loaded before or after this package.

This library is under development yet.

Variable Documentation

var L2D_DIALOG_BUTTONOK = 0

button type : OK

var L2D_DIALOG_BUTTONYES = 1

button type : YES

var L2D_DIALOG_BUTTONCANCEL = 2

button type : CANCEL

var L2D_DIALOG_BUTTONNO = 3

button type : NO

var L2D_DIALOG_BUTTONAPPLY = 4

button type : APPLY

var L2D_DIALOG_BUTTONOTHER = 99

button type : OTHER