TXmsDBGrid

Xequte Software
www.xequte.com
xequte@usa.net


TXmsDBGrid is a descendent of TDBGrid that addresses three major failings of the original:
- Shift key selection of contiguous multiple rows
- Resize of columns to fit within the available grid space, i.e. so you never have horizontal scrollbar
- Adding MouseUp and MouseDown events.

Both are optional and shift key multiple selection uses the standard dataset tbookmarks rather than a proprietary selection method so adding Shift key support is as easy as swapping your current DBGrid for TXmsDBGrid.

Column Resize uses a ResizeToFit method (usually put in the onresize event).  It will reduce or increases the size of a specified column so all columns match the exact width of the grid.  You specify which column is resized and what is its minimum and maximum widths.

TXmsDBGrid Properties

ResizeCol (default 0):  This is the column whose width should be altered when calling the ResizeToFit method.

ResizeColMin (default 20): This is the minimum permissible width of the column above when the ResizeToFit method is called.  If the minimum width is reached then TXmsDBGrid will not succeed in dismissing the Horizontal scrollbar

ResizeColMax (default -1): This is the maximum permissible width of the column above when the ResizeToFit method is called.  If the maximum width is reached then the columns then there will be a blank area at the right of the columns.  The default of -1 means there is no maximum width of the column.

SelectOnMove (default False): Normally selecting a file with the keyboard (e.g. Up and Down keys) does not have the same effect as clicking it with the keyboard.  That is, the former does not actually select the item (i.e. not a Tbookmarks selected file).  If you enable this option then clicking a row with the mouse or moving to it has the same effect it becomes the selectedrows of the dataset.

TotalColWidths: This value is the total width of column in the DBGrid, you might use this for setting the width of the DBGrid to the columns that it contains.

currentrow: This is the currently selected row, 0 based, i.e. 0 indicates the first row, 1 is the second row etc.

currentcol: This is the currently selected column, 0 based, i.e. 0 indicates the first column, 1 is the second column etc.


TXmsDBGrid Methods

ResizeToFit:  This resizes the column set in ResizeCol so that the total columns match the width of the available space in the DBGrid.  I.e. so there is no horizontal bar and no blank space.  It is bound by ResizeColMax and ResizeColMin.

SelectAll:  If dgmultiselect is set in options then calling this method will set all selected rows in the DBGrid

ResetAll:  If dgmultiselect is set in options then calling this method will clear all selected rows in the DBGrid


TXmsDBGrid Events

OnMouseDown(Button: TMouseButton; Shift: TShiftState; X, Y: Integer);

OnMouseUp(Button: TMouseButton; Shift: TShiftState; X, Y: Integer);


About Shift key multiple select

If you have dgmultiselect set in options then shift key selection of multiple contiguous rows is enabled (as well as Ctrl key selection)

Limitations:

Shift key multiple selection can only be used when no rows are presently selected

Users cannot move the scrollbar between selecting the first file and selecting the last.



Registered Version

There is no difference between the registered and unregistered version except that the unregistered version has only the font colour clLime and displays a message every 20 selections.

The full version is US$10.00.


You register either by: 

1. Standard Post

Fill out the form below and send to the address below:

Xequte Software
5 Abilene Cres, Churton Park
Wellington
New Zealand


2. Via E-mail (Credit Card only!)

Fill out the details below and e-mail to xequte@usa.net.


3. Register online (Credit Card only!)

Direct your browser to http://www.xequte.com

Follow the instructions.


You will be e-mailed a full registered version within 24 hours

It includes: 	
* 12 months e-mail support 
* Free Updates 


Notes on payment in your own currency

If you are sending currency other than US dollars (or sending cheques):
- Using a newspaper, convert the US$ value to your own currency using the US$ buy price.
- Record the date at which you worked out the conversion rate.
- If paying by cash, round the result UP to the nearest paper note (or notes), i.e. 1876 yen, send two 1000 yen notes.



Registration Form


Customer Details: 

First Name: ____________________

Last Name: ____________________
 

E-mail Address: ____________________

Please confirm e-mail: ____________________

Address: 

____________________

____________________
 
City: ____________________
 
State/Province: ____________________

Postal Code: ____________________

Country: ____________________

Phone: ____________________   [ ]Home?  [ ]Work?


Payment method: [ ]Credit card, [ ]Money Order, [ ]Personal Cheque, [ ]Cash.

CREDIT CARD DETAILS:
[ ]Visa
[ ]MasterCard

Credit Card #:  ____________________   
 
Expiration Date:  __/__/__(MM/DD/YY or MM/YY)


MONEY ORDER DETAILS

Money Order number: ____________________ 


PERSONAL CHEQUE DETAILS

Name on cheque, if not your own: ____________________ 

Cheque number: ____________________ 

Currency: ____________________ 

Conversion rate: ____________________ 

Date of this rate: ____________________ 


CASH DETAILS

if other than US$:

Currency: ____________________ 

Conversion rate: ____________________ 

Date of this rate: ____________________ 


Items required: 

TXmsDBGrid, 	__ copies* at US$6.50 	       =	US$______
Handling				 		US$3.50

Total:							US$______


* A separate licence is required for each commercial application in which TXmsDBGrids are used.
