Forms & Containers


Enumerations

enum  tMResults {
  mrNone,
  mrOk,
  mrYes,
  mrNo,
  mrDraw,
  mrChat,
  mrQuit,
  mrNew = 6,
  mrUpload,
  mrRename,
  mrDelete,
  mrView,
  mrPlay,
  mrRestart,
  mrSet,
  mrLater,
  mrCancel,
  mrMessage,
  mrUser = 32
}
enum  tDialogStyle {
  mbNone = 0x0,
  mbOk = 0x1,
  mbYes = 0x2,
  mbNo = 0x4,
  mbDraw = 0x8,
  mbChat = 0x10,
  mbQuit = 0x20,
  mbNew = 0x20,
  mbUpload = 0x40,
  mbRename = 0x80,
  mbDelete = 0x100,
  mbView = 0x200,
  mbPlay = 0x400,
  mbRestart = 0x800,
  mbSet = 0x1000,
  mbLater = 0x2000,
  mbCancel = 0x4000,
  mbEdit = 0x10000,
  mbPasswd = 0x20000,
  mbNoEsc = 0x40000,
  mbLeft = 0x80000,
  mbNoShutup = 0x100000,
  mbReverseOrder = 0x200000,
  mbsDefault = 0x0,
  mbsNone = 0x0,
  mbs0 = 0x0,
  mbs1 = 0x400000,
  mbs2 = 0x800000,
  mbs3 = 0xC00000,
  mbs4 = 0x1000000,
  mbs5 = 0x1400000,
  mbs6 = 0x1800000,
  mbs7 = 0x1C00000,
  mbsMask = 0x1C00000,
  mbsAbout = mbs6,
  mbsDraw = mbs4,
  mbsEsc = mbs5,
  mbsLinkOff = mbs1,
  mbsNoDraw = mbs7,
  mbsWelcome = mbs2
}


Compounds

     struct   cCustomFormThis is a structure of the main form
     struct   cDialogThe structure for common dialogs
     struct   cFrameFormThis structure creates a full-screen, framed window


Detailed Description

Forms (cCustomForm, cFrameForm) are structures that can be used as containers that 'host' other elements, such as controls (see below). Please note that cDialog is a ready-to-use thing, you just have to provide its constructor with flags (there are about 40 bit masks for your convenience, so the whole thing is highly configurable).


Enumeration Type Documentation

enum tDialogStyle
 

Dialog styles.
Constants with value 1..0x8000 are buttons. Other constants are special style constants.

Enumeration values:
mbNone   no buttons.
mbOk   "OK" button.
mbYes   "YES" button.
mbNo   "NO" button.
mbDraw   "DRAW" button.
mbChat   "CHAT" button.
mbQuit   "QUIT" button.
mbNew   "NEW" button.
mbUpload   "UPLOAD" button.
mbRename   "RENAME" button.
mbDelete   "DELETE" button.
mbView   "VIEW" button.
mbPlay   "PLAY" button.
mbRestart   "RESTART" button.
mbSet   "SET" button.
mbLater   "LATER" button.
mbCancel   "CANCEL" button.
mbEdit   edit string attached to dialog.
mbPasswd   dialog's edit is in password mode (all symbols are viewed as '*').
mbNoEsc   do not close dialog when <Esc> button is pressed. (normally, dialog will close with mrCancel ModalResult).
mbLeft   set dialog text flush left flush left (normally, dialog text is centered).
mbNoShutup   dialog should ignore "msg_shutup" message. Used in "program close" dialogs.
mbReverseOrder   reverse the order of the buttons in the dialog (for example, <Cancel> moves to the left of <OK>).
mbsDefault   play default music when the dialog is shown.
mbsNone   don't play any music is playing when the dialog is shows.
mbs0   play Music 1 when the dialog is shown.
mbs1   play Music 2 when the dialog is shown.
mbs2   play Music 3 when the dialog is shown.
mbs3   play Music 4 when the dialog is shown.
mbs4   play Music 5 when the dialog is shown.
mbs5   play Music 6 when the dialog is shown.
mbs6   play Music 7 when the dialog is shown.
mbs7   play Music 8 when the dialog is shown.
mbsMask   shift the music fields.
mbsAbout   The same as mbs6.
mbsDraw   The same as mbs4.
mbsEsc   The same as mbs5.
mbsLinkOff   The same as mbs1.
mbsNoDraw   The same as mbs7.
mbsWelcome   The same as mbs2.

enum tMResults
 

Predefined results that may be returned from modal forms.
You can use your own results too.

Enumeration values:
mrNone   no result available.
mrOk   "OK" button pressed.
mrYes   "YES" button pressed.
mrNo   "NO" button pressed.
mrDraw   "DRAW" button pressed.
mrChat   "CHAT" button pressed.
mrQuit   "QUIT" button pressed.
mrNew   "NEW" button pressed.
mrUpload   "UPLOAD" button pressed.
mrRename   "RENAME" button pressed.
mrDelete   "DELETE" button pressed.
mrView   "VIEW" button pressed.
mrPlay   "PLAY" button pressed.
mrRestart   "RESTART" button pressed.
mrSet   "SET" button pressed.
mrLater   "LATER" button pressed.
mrCancel   "CANCEL" button pressed.
mrMessage   Message received.
mrUser   beginning of the user's definitions.