IMG Developer's Kit: Developer's Kit Guide and Technical Documentation; Version 1.90; User's Guide | ||
---|---|---|
Prev | Chapter 2. Developer's Corner | Next |
Steps for using the Copy & Configure utility / Integrating with Visual Basic / MS-Access
Visual Basic Developers: Review the samples in the VBASIC folder (Installed Developer's Kit) for Form Event Examples, and Module Load information - This is the starting point for integrating into VB! (Note: MTSDLL is the future of this DLL (1.71 Release))
Developer's Kit 1.71 includes the MTS DLL (MTSDLL folder from extracted Developer's Kit) with an sample MDB database for MS-Access 97 showing how to tie the DLL into Access, and the event settings on a sample form - the steps & examples included in the MTSDLL folder may be what you are looking for. The same concepts apply, but the implementation is more integrated than the steps listed below. Note: The steps to create preset configuration still apply.
My-T-Soft used as an example / Integrated with MS-Access
( 1) Configure My-T-Soft with the proper Panels open & set the appropriate size. The necessary utilities are expected to be in current directory for MS-Access.
( 2) Use the Menu to select Save Current Settings, Save Current position (or use utilities).
( 3) The KEYBOARD.KBF in the installation directory contains the current saved configuration. Copy this file to a DIFFERENT file name, e.g. KEYPAD.CFG, NUM.CFG, etc. (For this example, this is assumed to be the installation directory) Note: Do not use .KBF extension for these extra files.
( 4) Repeat Steps 1 - 3 as necessary to build up a set of configuration files.
( 5) The Copy & Configure utility takes the file name as a single parameter.
( 6) Example: In Microsoft Access - Field (Text Box) Property Enter (OnEnter). x = Shell("CPYCNMTS C:\WINNT\MYTSOFT\KEYPAD.CFG",1)
( 7) Description: The example in Step 6 would restore My-T-Soft from an off screen position and reconfigure to match the KEYPAD (previously saved) configuration.
( 8) Example: In Microsoft Access - Field (Text Box) Property Exit (OnExit). x = Shell("MOVEWMTS X:641 Y:320",1)
( 9) Description: The example in Step 8 moves My-T-Soft off screen when the field is exited (Keyboard Enter, Tab, etc.)
As seen in ...