Introduction
DTX is a set of classes for
editing and automatic read, write and display of datatabase fields. DTX
provides automatic read and write of Blob variables (for example. Read and write
DBImage). It's very easy to
use. Version 1.8 is only for use with MS Access Databases, but is not designed only for
Access tables. It includes 70+ ready to use classes.
-
Very easy to use
- automatic reading, writing Field values
- automatic read, write blob fields
- automatic reading, writing DBImages
-
Uses Normal and Calculated Fields
- automatic updating of screen data
-
Uses standard windows (C<xxx> Classes) and colored and shadowed (CDTX<xxx> classes)
controls
CACEditCtrl
- Auto Complete Edit (Based On James R. Twine's CACEditCtrl
)
CCalculatorCombo
, CDTXCalculatorCombo
and CCalulatorDlg
(Only Ver 1.5) Popup Calculator and Calculator dialog
CFlatComboBox
, CJFlatButton
(Copyright Kirk Stowell)
CDate
, CComboDate
, CListBoxDate
(Copyright MORIN Jean-Marc, Only in Ver 1.5)
CDaoTableCreator
- *.MDB Database creator
CDBCheckBox
a Control for Bool fields
CDTXComboBox
, CDBComboBox
, CDTXDBComboBox
, for String and Integer fields
CDBCurrencyEdit
, CDTXDBCurrencyEdit
, for Currency Fields
CDTXEdit
, CDBEdit
, CDTXDBEdit
, for general fields
CDTXImage
, CDBImage
, CDTXDBImage
, for LongBinary Images
CDBListCtrl
, CDTXDBListCtrl
, for Listing (Derived from Maarten Hoeben's
CReportCtrl
, Only in Ver 1.5)
COXMaskedEdit
, CDBMaskedEdit
, CDTXDBMaskedEdit
, for general fields (Copyright and Derived From Dundas
COXMAskedEdit
)
-
CDBNavigator
a Record Navigator like MS DBNavigator
-
CDTXLabel
CNumericEdit
, CDBNumericEdit
, CDTXDBNumericEdit
, for Numerical fields (Derived From Corey Spagnoli's pastable Numeric edit ctrl)
- CFlatACComboBox, CDTXSACComboBox Auto Complete ComboBox
CReportCtrl
, CDTXReportCtrl
, CDBListCtrl
, CDTXDBListCtrl
(Derived from Maarten Hoeben's CReportCtrl
)
CDTXTable
a base class for Access a database system
CDTXDAOTable
a class for Acces MS Access Databases
CLabel
(Copyright NT ALMOND)
CDBLabel
(Derived from CLabel)
CRicheditex
(Copyriight AndrewFo) and CAutoRicheditCtrl
(with Richedit 2.0)
CDBRichEdit
and CDTXDBRichEdit
CDateWnd
, CPopupDate
CDBDateCombo
, CDTXDBDateCombo
, CDBListBoxDate
, CDTXDBListBoxDate
CDTXDBACEdit
-
CDBCalculatorCombo
, CDTXDBCalculatorCombo
-
and helper classes and procedures
-
Label Demo
-
Edit Demo
-
Image Demo
-
ComboBoxes Demo
-
Database Demo
-
Background (Read Write Blob Demo)
-
My Friends (Read DtxField Value)
-
Employee (Sample Database App)
-
My Programs (My other Freeware and Shareware
Programs)
-
New Controls Ver. 1.5 Controls demo
Unzip DTX
Files any directory. Run Visual Studio. Go "Tools" Menu and Select "Options".
Click on "Directories" Tab and Add DTX Directory for "Include Files" and
"Library files"(use "Show Directories for" combobox). Now we added DTX path to
Visual Studio. Now we are design DTX Background demo
- Now create a new project. For ex. Dialog Based and
Name is "
CTestDlg
".
- Go "View" Menu and select "Resource Includes". Add "
#include <dtxlib.rc>
" line at "Read-only symbol directives"
Listbox.
- Open "Stdafx.h" and add "
#include <dtx.h>
" line.
- Press Alt+F7 and open then "Project
Settings"
- Select the "Link" tab
- Select the "Object/Library Modules" edit box and type
"DTXLibDbg.lib" (debug version at the Win32 Debug)
- Click "OK" Okay now add DTX to my project.
- Design your dialog.
- Right Click On yor dialog (CTestDlg) at "Project
Workspace". Click "Add Member Variable"
- Type "
CDTXDAOTable
" in "Variable Type" editbox and
Type "m_Table
" in "Variable Name" editbox
- Go
CTestDlg::CTestDlg
and change The ":
CDialog(CTestDlg::IDD, pParent)
" line to : CDialog(CDenemeDlg::IDD, pParent),
m_Table(NULL, _T("C:/Test/DTX.mdb"), _T("Background"))
"
(NULL
= parent
Wnd of Table, c:/test/dtx.mdb is main db file, Background is my Table
Name)
- Press Ctrl+W and Open Classwizard
- Click "Member Variables" Tab
- Select "
IDC_EDIT1
" and click "Add Variable" Button (
The IDC_xxx may be different)
- choose a name. Click "OK" (for ex.
m_Name
) (Note:
Category must be "Control")
- Try 10-11 number for all Fields
- At the "Project Workspace" click "
m_Name
"
- Change the Type
CDTXDBEdit
(may be another class for
ex. CDTXDBImage
, CDBNavigator
, etc...)
- Try 13-14 for the all fields ( For ex
DBNavigator
)
- Go "
CTestDlg::OnInitDialog()
" (OnInitialUpdate
for
CFormView
)
- If required add "
m_Table.SetTableName
(<Your DB File Path and
Name>));"
(may be "m_Table.SetTableName(_T("c:/test/DTX.MDB"));
"
- Add "
m_Table.SetOwner(this);
" line
- Add "
m_Name.SetFieldName(_T("PicName"));
(m_Name.SetFieldName(_T("<Field Name>"));
- Add "
m_Name.SetTable(&m_Table);
" line
- Try 19-20 for all fields
- Add "
m_Table.Opentable();
" Line and open the table
- Compile and run
- Thats all .
- DBGrid
(Finished but under test)
CTXADOTable
(ADO Interface -
Finished under test)
- Interface for other Database Systems (Oracle, MS
SQL, MySQL, Postgre, Gigabase, etc...)
- Reporting Tool (Designer and Viewer)
- Memory Table
- Thanks for using DTX
- All 3rd
party components copyrighted by authors and found in Code Project and Code Guru
- DTX is not Designed for only MS
Access Tables
- Visit my WEB
Site for other Freeware and Shareware
programas
- Please send me email or ICQ Message (UIN= 57653356)
for updates and questions