The ButtonAp Release 2.0 is the second release of a testing application that uses
the OWL gadgetry subsystem like Button Gadgets, Text Gadgets, Divider Gadgets and
other gadgets. Parts of the code of the first release have been rewritten to support
the registry instead of the default .INI file, to support the capability to store
and reload several parameters and options of this application. For example when
you run this application, the following registry keys will be created in the tree
"ColorPicker" contains the current color value for the color picker and its custom colors.
"Options" contains the position of the main window.
"Recent File List" contains the MRU List.
"Toolbar0, Toolbar1, Toolbar2" contain the gadget ids and the position of each toolbar.
"ToolbarOptions" contains the options for all toolbars.
Those keys are created in Win32 target mode. The Win16 target app has the keys in
another tree, but they are the same. The peculiarity of this application
is that it runs well both under Windows 3.1 and Windows 95,
without problems or limitations. One of the greatest feature
of OWL is that it can "hide" the differences between
Win16 applications and Win32 applications.
All this code was tested using CodeGuard, both under
Windows 95 first release and under Windows 3.10.
The CodeGuard reports an error due to "GetSubMenu" and
"GetFTime" functions. To avoid these "perpetual" errors,
I include a .CGI file, a CodeGuard configuration file,
that prevents those errors. I must thank CodeGuard
as it discovered several bugs and problems on classes,
like in JPFlatTextButtonGadget and other classes.
Many problems are there, and I haven't enough time
to solve them (I'm an unemployed, let me look for a job!!).
I suggest you to heavily test this application on your
projects before trying to sell your product, to be sure
that your users may be satisfied of your (and my!!) work.
A new feature of the release 2.0 is the Flat Color Picker, displayed in the images here
below. In the left image you can see the color picker window just opened by the
FlatColorPicker gadget. On this picker window you can choose a color. The chosen color
is currently displayed as pressed (in the image it is "red"). In the second image you can see the FlatColorPicker gadget
in its normal position, and the chosen color is painted inside the ellipse under the "P" char.
As you can see in the two images here below, the release 2.0 supports the grey-scale drawing
like Internet Explorer. In the left image you can see the normal state of the "Open"
button, in the right image you can see the hot-tracked state of that button.
Another feature of the ButtonApp, is the toolbars' customization dialog. As you can
see in the image here below you have available buttons that can be inserted in the
currently listed toolbar. Besides you can change the current listed toolbar, you
can restore all toolbars and to move up or down a single gadget.