In this package all the controls needed for most applications are
combined. These are the controls equivalent to those of standard Windows, plus some extensions
that are lacking in standard Windows, while being required even in basic dialogs. Additionally,
all controls of DLG Basic can have callback
procedures for handling single/double clicks by left/middle/right mouse button and for entire
sub-classing.
If the user has a wheel mouse, all controls of DLG Basic
can also respond to rolling the wheel (if it is provided with the respective callback procedure).
Static + Edit
|
With Static and Edit controls you can build elementary user dialogs,
with the messages prompting the user being displayed by Static's, the user inputs taken in by
Edit's.
This demonstrates the most significant features of DLG: Variables in calling program accepting
the user inputs are associated right at the time of creating the controls. User inputs can be
checked before closing the dialog. Controls are created dynamically, at runtime. This means,
no static declarations (= at compile time) in an .rc-file are needed. All this at a quality
unimaginable in standard Windows: color, brush, bitmap pattern, different fonts, multimedia
support - simply by one additional DLG option.
For details look at Sample 1.0.
|
top
Button
|
Like its standard Windows equivalent, the DLG button
can be modified by its style parameter.
Additionally, in DLG there are new styles for
bistable and
multistable buttons.
Buttons can be flat ,
face-only or
pushlike .
By special DLG options they can have text or graphic face. New in DLG
there are Xstep and
Ystep buttons.
Additionally, when clicked they can have a highlight
and/or they can alter their text or graphic face.
In DLG, buttons can be combined to groups
and sub-groups . So they can emulate another
functionality, seemingly unrelated to buttons (for an example see Operations 1 ). All this in full DLG
quality, plus multi-media support.
For details look at Sample 1.1.
|
top
ListBox
|
In standard Windows, handling a ListBox requires
much programming.
In DLG you need just one code line to unleash all the ListBox functionality. Thanks to a
special DLG notation you can load a ListBox from an ASCII-file, from a string, from a
directory structure on disk, or by your own callback procedure.
A ListBox can be single-select
or multi-select .
Each ListBox item can have a 32bit-balue
associated. Foreground and background can be embellished by color, brush, bitmap pattern,
fonts and different letter sizes.
All this, of course, with variables in the calling program being associated, too. Before
launching the dialog, the initially selected item(s) are fetched from the associated
variable. Before closing the dialog, the item(s) selected by the user are optionally checked
and then stored-back to the associated variable.
For details look at Sample 1.2.
|
top
ComboBox
|
Like ListBox, handling a ComboBox in standard Windows
is quite a chore. In DLG, however, the ComboBox was designed to be more "programmer-friendly".
With only one line of code you can have all the standard functionality plus associating it with
a variable in the calling program, input checking and the abundance of DLG embellishing.
As well, a ComboBox can be loaded from an ASCII-file, from a string, from a directory
structure on disk, or by your own callback procedure.
Similarly you can have embellishing by color, brush, bitmap pattern, fonts and different
letter sizes, and an associated variable in the calling program.
For details look at Sample 1.3.
|
top
Tabs
|
The new Tab-control of standard Windows provides
"tabbed" dialogs: according to the current tab, a new "folder" opens up and new controls become
visible. Thus a dialog can be extended far beyond the limits of one narrow screen.
In DLG the same principle was adapted, optionally based on standard Tab-controls, sub-classed
Tab control, Tab control with graphic symbols (icons or bitmaps), or Tabs emulated by a button
sub-group (combined with Operations 1 ).
Combined with MessageLoop a tabbed dialog can be made much more "user-friendly" than in
standard Windows, with all features being accessible by mouse and keyboard as well.
For details look at Sample 1.4.
|
top
DirSelect
|
DirSelect is a DLG-specific control, with no equivalent in
standard Windows. In many applications you need to prompt the user for a directory. Instead
of simply having it type in, it is much more "user-friendly" to provide a graphic representation
of the current directory structure on all drives in the system. When clicking a drive, it expands
to its sub-directories of level 1; clicking further goes down to level 2; etc.
Eventually the full path to an elementary directory is complete. The user double-clicks the
desired directory, and its path is stored back to the associated variable.
For details look at Sample 1.5.
|
top
Operations 1
|
When combining DLG controls with DLG operations, you can
implement a wealth of functionality with not a single line of programming. You can fully
concentrate on implementing application-specific parts by programming callback procedures.
This will boost the productivity of your software development enormously.
DLG operations are implemented by an option of a button. When the user clicks it, the
operation is activated.
Operations 1 is a collection of some of the most frequently needed operations. It comprises
the following operations:
- Sub-dialog for the user choosing a file.
- Sub-dialog with a DirSelect.
- Presenting a help text.
- Memorizing user inputs in a ComboBox.
- Emulating a tabbed dialog by a button sub-group.
For details look at Sample 1.6.
|
top
|