Generic Dialogs Version 2006 (c) Jacques Basaldúa |
| What is CGD? |
{<STARTDLG CGD20>}
FontDefinition = packed record
name : string [31];
size : integer; {<MIN 6>} {MAX 64}
Bold : boolean;
Italic : boolean
end;
PreviewWin = packed record
doPreview : (pvNoPreview, pvPreviewOnTop, pvPreviewToRight);
nul : byte; {<PRIVATE>}
pvOnTimer : boolean;
pvOnEdChng : boolean;
pvX : integer; {<MIN 0>}
pvY : integer {<MIN 0>}
end;
{<DIALOG cgdOptions>}
cgdOptions = packed record
OpeningLevel : integer; {<MIN 1>} {MAX 16}
tbButtons : integer; {<MIN 0>} {MAX 8}
isMetric : boolean;
hasDlgFrame : boolean;
hasThickFolders : boolean;
HelpTimeout : byte; {<MIN 1>} {MAX 16} {>>In 1/4 second units}
txColor : cgdColor;
bkColor : cgdColor;
ColorLighter : cgdColor;
ComboTxColor : cgdColor;
ComboBkColor : cgdColor;
EditTxColor : cgdColor;
EditBkColor : cgdColor;
StaticN : FontDefinition; {<LBOLD>}
StaticBd : FontDefinition; {<LBOLD>}
StaticIt : FontDefinition; {<LBOLD>}
StaticBI : FontDefinition; {<LBOLD>}
RadioFnt : FontDefinition; {<LBOLD>}
ComboFnt : FontDefinition; {<LBOLD>}
EditFnt : FontDefinition; {<LBOLD>}
PreV : PreviewWin; {<LBOLD>}
BoolMinX : integer; {<MIN 1>}
BoolMinY : integer; {<MIN 1>}
RadioMinX : integer; {<MIN 1>}
RadioMinY : integer; {<MIN 1>}
ComboMinX : integer; {<MIN 1>}
EdStringX : integer; {<MIN 1>}
EdNumberX : integer; {<MIN 1>}
EdFnamX : integer; {<MIN 1>}
EdPathX : integer; {<MIN 1>}
EdPntCellX : integer; {<MIN 1>}
EdColCellX : integer; {<MIN 1>}
EdDTBoxX : integer; {<MIN 1>}
EdMinY : integer; {<MIN 1>}
ColorSampX : integer; {<MIN 1>}
fullReadOnly : boolean;
autoAdjLength : boolean;
ParentClick : boolean;
ForceScrollbar : (fsUseDefault, fsShowAlways, fsNeverShow)
end;
{<ENDDIALOGS>}
As you can see, this
is just the definition of some Pascal types. The tags, such as
{<DIALOG cgdOptions>}
, are remarks for the Pascal compiler, but they are commands for the CGD compiler. The same source file, when compiled by
the Pascal compiler, generates an .exe application and, when compiled by CGD, it generates a .cgd dialog file. This file is used by a DLL
(called cgdrun20.dll) to edit a record of the type declared as a dialog.
| CGD for the user: | |||||||||||||||||||
|
| CGD for the programmer: | |||||||||||
|
| CGD is something for you, if: | |||||||||
|
| CGD is not for you, if: | |||||||||
|
| License conditions |
| What languages are supported? | |
|
| What operating systems are supported? | |
|
| Where is the DLL? | |
|