Edit component with buttons, version 1.05

Last modified on 19 Jan 1998
Goto www.fadel.com for more recent versions...
==========================================================================

This editbox can display several buttons into the same
component. Easy to use in your applications or derive
your own custom components with an integrated fixed
button. eg: a Filename editbox with browsing
capabilities ( this component is included in this
package )

What's new
-----------
- Alignment
- Auto hide buttons

Multiple buttons at both edges of the editbox.
-------------------------------------------------
Buttons can be placed on each side of the editbox using
the property BOPosition. Property BOFlat determines
whether the button has a 3D border that provides a
raised or lowered look. Each button can have Hints, a
caption and a glyph.

It's even possible to load a glyph from a resource file
instead of adding it directly into the components .DFM
(using property BoResBmpName).
This is very useful if you use an image in your whole
application.  These functionality is also included in
the TBoSpeedbutton component which is distributed freely
together with the editbox component.

Integrated checkboxes
---------------------------------------------------
The component also supports an unlimited count of
checkboxes, very useful in some applications where the
value in the editbox depends on a checked value.
example :
BoEdit.BoChecked := true;   //checks all the buttons in
the editbox.
BoEdit.BoButtons[0].BoChecked := true  //only check the
first checkbox button inside the editbox.

Easy to use property editor to create the buttons.
---------------------------------------------------
You can easily add buttons to the component by launching
the BoButtons property editor. Just like the
TDBGrid.Columns property editor.  Fill the buttons'
caption, glyph, hint, onclick and you're ready to use
the button.
It's also possible to create some buttons at runtime :
With BoEdit.BoButtons.Add do
begin
   BoCaption := 'test';
   BoResBmpName := 'bobmp_search';
   ...........
end;

Toggle buttons
---------------------------------------------------
With the BoGroupindex property you can created grouped
checkboxes. The property BoDown specifies which button
is down and which are up.
Buttons with the same BoGroupindex value are grouped
together, leave groupindex 0 if you don't want to use
toggle buttons.

Data-aware editbox
---------------------------------------------------
This component package also includes a TBoDBEdit, which
is the dataware version of TBoEdit. TBoDBEdit has all
functionality of a regular TDBEdit component but can
also display buttons & checkboxes.

Integrated shortcut handling system
---------------------------------------------------
You can easily assign a shortcut to a button using the
BoShortcut property. One button in your edit box can
have the default keyboard shortcut ALT+DOWNARROW. Just
set the BODefault property for the button to TRUE.

Converting existing TEdit and TDBEdit components
---------------------------------------------------
This is no problem, when you form is visible in the
Delphi IDE, press ALT-F12 to see the forms' .DFM in
text. Search your edit component and replace the TEDIT
text with TBOEdit, TDBEdit with TBOEdit. After saving
your form you can add buttons to your editbox component.

Creating your own derived components
---------------------------------------------------
This component package includes the TBoFilename edit
component. You can use it as an example about how to
create a component with several fixed buttons which
can't be removed by the end-user with the property
editor.
Fixed buttons are created using the
TBoEdit.BoFixedButtons property (not at designtime). See
the sourcecode of the TBoFilenameEdit component for more
information. Registered users can get support when they
are creating theire derived components.

Included : TBoSpeedbutton, TBoDBSpeedbutton components
---------------------------------------------------
This component package also includes an enhanced
speedbutton component.

1. Instead of filling the Glyph property you can fill
the BoResBmpname property in order to load an image from
a resource (.res) file.  Using resource images instead
of filling the glyph property has many advantages when
you have a large application which frequently uses the
same bitmap. Delphi saves the glyph in your .dfm for
every speedbutton. So when you want to change the bitmap
you have to change several forms and several
speedbuttons. By using resources you only need to change
the .res file with the delphi image editor and your
complete application is automatically updated.
2. You can use this component as a toggle button between
several values.
Specify the values in the BoValues property, the
captions in the BoCaptions property, resource images
names in the BoResBmpNames property etc....
Changing the value of property BOValues automatically
takes care of the visible update of the component.
There is also a data-aware version : TBoDBSpeedbutton.

Latest Download available at http://www.fadel.com/editbox
---------------------------------------------------
Disclaimer : The author of the component is not
responsible for all kinds of damage directly or
indirectly caused by these components. Use them at your
own risk.

What's included :
- TBoEdit, TBoDBEdit, TBoSpeedbutton, TBoDBSpeedButton
components
- Full functional version for Delphi 3 and Delphi 4.
- Source code of TBoFilename edit as an example how to
create derived components.

! Shareware : This component is not free, when you like
the component I would like to invite you to register
your component (see below).
Source code of components is available after
registering.


How to register
-------------------------------------------------
The trial version only allows 3 edit components on your form.

After registering you'll receive the source code of the
component package upon request.
Single license : $35 USD

Registered users are entitled for free updates and
e-mail support.

Goto http://www.fadel.com/editbox for registering or
contact me by e-mail : info@fadel.com

(C) 1998  Benny Otten,  
Karel Martelstraat 4b,  
B-3920 Lommel,
Belgium,

mailto:benny@fadel.com
