|IMG Developer's Kit: Developer's Kit Guide and Technical Documentation; Version 1.79; User's Guide|
|Prev||Chapter 7. Language and Platform Examples||Next|
TYPE: Example integration in Visual C based program
LANGUAGE: C / Windows API
IDE: Microsoft Visual C++ 6
This is an example showing off a few uses of integrating My-T-Soft within a Visual C program. The MTSDLL.C file is included so it can easily be referenced within the project. The key thing to understand with the external control of My-T-Soft is the ability to bring up the appropriate panel when required for your application.
The examples shown are:
When opened, the program checks for the My-T-Soft window if not running, you are given an option of launching the program. In general, it is recommended that My-T-Soft is run either at startup or with the start of the application using the NoSplash option (and perhaps saving a configuration where the keyboard is opened off-screen), the keyboard can be opened & ready for operation as required.
Using a timer, the program puts the keyboard window at the bottom of the window.
Using the default File Open dialog, the file KYBDX.CFG is used to bring up the keyboard panel only by default, with React to Dialogs On (Setup | Configure | Operation Options), the keyboard will move to the bottom of the dialog.
The Edit Find uses a similar approach, but after the dialog is closed, the Edit panel configuration is set.
The Options | My-T-Soft dialog gives you a method for manipulating the displayed panels/size via the dialog.
The Options | Embedded Window shows a sample window that embeds the keyboard into the window.
The example is in C (for familiarity with C & C++ developers), using a basic legacy Windows framework & approach. The source code is provided, along with a built example in the VISUALC folder.
Version 1.77 - July 7, 2003
Copyright 2002-2003 by Innovation Management Group, Inc. All Rights Reserved.
My-T-Mouse, My-T-Pen, My-T-Touch, and My-T-Soft are registered trademarks of Innovation Management Group, Inc.