| CGD for the user: | |||||||||||||||||||
|
| CGD for the programmer: | |||||||||||
|
| CGD is something for you, if: | |||||||||
|
| CGD is not for you, if: | |||||||||
|
A "Hello world!" program:
PROGRAM HELLO;
USES cgdTypes;
{<STARTDLG CGD20>}
TYPE
{<DIALOG HelloDialog>}
HelloDialog = packed record
{<BLANKLINE>}
{>My first CGD dialog.} {<LBOLD>}
{<BLANKLINE>}
Speed : single; // Note: The variable name is used,
// if no other text is given.
more : single {>An other field}
{<BLANKLINE>}
end;
{<ENDDIALOGS>}
VAR aDia : HelloDialog;
BEGIN
cgdSetCGDFileName('.\hello');
aDia.speed := 100;
aDia.more := 0;
cgdDialog(0, // hWnd of parent
'My first dialog !', // Title
'HelloDialog', // Type
SizeOf(HelloDialog), // Size of data
@aDia) // Pointer to data
END.
|
This is the output of the "hello world" CGD application listed to the left: ![]() The file size of this executable is: 3584 bytes (3K5) It is impossible to write a 32 bit Windows application smaller than 1024 bytes headers 512 bytes code 512 bytes data 512 bytes .idata 512 bytes .reloc 3K = void application |
Bitmaps and conditionals:
{<DIALOG BitmapDemo>}
BitmapDemo = packed record
{<BLANKLINE>}
{> This bitmap is NOT conditional} {<LBOLD>}
{<CBITMAP 1001>} {<BITMAPSHIFTX -4>}
{<BLANKLINE>}
{> This bitmap is conditional} {<LBOLD>}
{<ALIAS Selector>} {\}
sel1 : (First, Second); {>Select the} {>>case}
{<CASE Selector = 0>} {\}
{<CBITMAP 1002>} {<BITMAPSHIFTX -4>}
{<CASE Selector = 1>} {\}
{<CBITMAP 1003>} {<BITMAPSHIFTX -4>}
{<BLANKLINE>}
{> This bitmap is application-owned } {<LBOLD>}
{<LBITMAP APPOWNED 1004>} {<BITMAPSHIFTX 6>}
{<BLANKLINE>}
end;
{<ENDDIALOGS>}
|
CGD dialogs also support bitmaps either as resources or application owned (=runtime created & freed). ![]() |
Configurable options: Many visual aspects concerning: fonts, colors, width of elements, toolbar buttons, etc. can be configured by a call to the function: cgdSetOptions The CGD IDE previews such options and it converts the results to Pascal source code. To learn more of CGD, download it (below) or study its manual by clicking here. |
![]() |
| This is an actual screenshot of different CGD dialogs:
|
![]() |
MORE |
|
License |
CGD is shareware. One license costs 90 USD. Even if not registered,
you can use it with only one limitation as long as you wish: If a .cgd file is created with an unregistered CGD copy, the dialog will display a message mentioning this fact in its message output area. It is Ok to use unregistered CGD copies for educational purposes. If you program professionally, you will find your investment in CGD worth the number of working hours it will save. CGD
(c) 2005 - Jacques Basaldúa. |
CGD Help |
If you want to read CGD's manual before downloading, follow this link. |
|
D O W N L O A D Windows 95, NT4, 98, 2000, Me or XP |
![]() |