home *** CD-ROM | disk | FTP | other *** search
- Included here are two new controls:
-
- Just register the file ButReg in the usual way making sure that
- all the res and unit file are together.
-
- TButtonArray An array of TButtons held together in a single control
- This class may be used AS IS or refined further. An example of extra
- refinement is Clinnav this is like the DBNavigator control but using
- TButton instead of bitmaps futher details are below.
-
- Please let me know what you think of them.
-
- Author Mike Lindre CompuServe USERID 100567,2225
-
- __________________________________________________________________________
- Description from Butarray file
-
- Base Class to create an array of buttons using (TButton) like DB Navigator
- The Variables are: Button Width, Height, No of Buttons and
- Spacing between buttons
-
- The button height and width and Spacing is fixed in the object editor
- and can not be changed using the mouse.
-
- The Button Count by default is 1, to increase the number of buttons
- expand the width of the control using a mouse or change the value in the
- object editor
-
- To Add Button Caption and Hints to each button either use the string property
- or use a resource string table.
-
- For the second option you need a resource workshop like in Borland C++ 4
- When using a string table just pass the first resource ID it is assumed
- that subsequent button text will be the next number ID a long.
-
- To capture event
- Each button has an index number starting from 0 to N
- the LHB (Left hand Button) is 0
- This index number is passed when the event is captured by the user
-
- inheritance
- To creating a new object from this class is easier than using
- DBNavigator all the Events have virtual procedural calls, this may be
- overriden and new functionality added
-
- An example of database navigator buttons using this class see ClinNav
-
- Author Mike Lindre CompuServe USERID 100567,2225
-
- Last Edit 12 July 1995
-
- _________________________________________________________________________
-
- Description from the Clinnav file
-
- Demostrates the use of the TButtonArray class
-
- This class duplicates DBNavigator except for :
- Uses TButtonArray class for the buttons so that more buttons
- may be added by stretching the control
-
- Instead of using BOF and EOF to grey out buttons it uses a call to
- the database engine so that the BOF is when the cursor is on
- the first record and EOF when the cursor is on the last record.
-
- Usually BOF is one before the first record
- Usually EOF is one after the last record
-
- hint help text and button captions are stored in a RES file CLINNAV.RES
-
- Most of this file is base on DBNavigator
-
- Author Mike Lindre CompuServe USERID 100567,2225
-
- Last Edit 12 July 1995
-
-