How to use YtvServices application
   YtvServices application can be used both as a collection of samples implementing advanced methods and tricks at computer programming and as a template for development of various applications for mostly service  businesses.

This manual was created with the free trial version of HelpScribble.
This notice will not appear in manuals created with the full version.




List of programming methods and tricks were implemented in YtvServices.
1) Editing cells of grids.
2) Creating Database in Windows Registry - API
for Adding, Editing, Deleting, Viewing, Exporting and Importing data.
3) Changing Windows Styles - visual effects.
4) Merge of cells of grid.
5) Data Validation on control lost focus
6) Extracting edit box control from Combo Control and subclassing of for implementing of customed features
7) Moving to the next control by pressing "Enter" additionally to use of "tab" key
8) Coloring of buttons by temporary setting of
new system colors
9) Multi optional Active X control for drawing graphs at high rate of data flow in the window and inserting images in printed page including conversions of units of measure, draw special customed marks/cursors, scales etc.
10) Using menu and hot keys for controlling
property pages embedded in View window
11) Setting fonts, colors
12) Implementing E-Mail with attachments and Printing for tabbed property pages imbedded in view window
13) Using Dialog Windows created in tabbed property pages embedded in view window
14) Using Communication Port for controlling application.
15) Using timers for various purposes
16) VCR type group controls for displaying and recording images having properties
with multilevel count of images.
17) Run time change structure of grid, deleting
grid lines, selection lines for printing, making new added lines visible and etc.  
18) Secure implementation of secret formulas used at calculations.
19) Starting new process/application from the running application.
20) Run time showing, hiding, resizing, moving, change colors and texts of controls for reflecting the state of application and user options at, using sound signals.
21) Using a parallel port for data flow control and input at use of special devices.
22) Development and using of DLLs and Static Libraries.

This manual was created with the free trial version of HelpScribble.
This notice will not appear in manuals created with the full version.




Using YtvServices as a Template for development of other applications.

    YtvServices was implemented as a so called MDA application. An example of this architecture is MS Word. But contrasting the usual feature, when clicking on Open item of File menu a file is loaded YtvServices implements an application, or set data of the current user. So the word "File" in the menu was replaced by word "Application". The default look of the program is deceptive, as it does not have visible title bar (Caption) of main frame window and child frame window also is not visible. The view window covers all screen, so it looks like a Dialog based very restricted at programming options architecture program. Such looks is required and convinied for many applications, but hidden MDA architecture greatly simplify implementation of many advanced features mentioned above and also printing, using
E-Mail, input and output of data etc.The child frame view is splinted at 2. Left has Tree control embedded. The right view has set of tabbed so called  properties dialogs embedded. So the structure is very flexible as additional pages can be inserted or/removed and existing modified    
The special setting of the view window of the child frame of the MDA architecture program when it cover all screen was done by changing the so called window styles after creating windows in MainFrm.cpp file of the project. You can restore the style by going to Settings and Help property page and uncheck a check control.

 
Naturaly the control of measurements in Measure Page is the most complicated.
It has 3 main modes: Auto, Manual, Semiautomatic.
Manual mode is different that extracting of parametters for measure is done by moving and resizing horizontally 2 so called Gates/Static controls located under the Graph Active X control. One of them which has yellow color is currently active. In automatic mode tthird control/gate is shown and all 3 are set/aligned automatically depending on options immersed/contact selected. So in auto mode all 3 are blue colored. Activation of the gate in Manual mode is done by mouse left button click on the gate. Movement and resizing is done by hot keys F5,F6,F7,F8
When the proper location in scan is found (when it exists) then on the graph image automatically appears green cross. For making measure in manual and auto/aphakic modes it needs 2 crosses (conditions to be existing). Auto/cataract mode requres 4 crosses (conditions to be existed).Cataract/Aphakic are options selected in radio controls having image of push buttons. In auto mode search for those conditions is done automatically and when satisfied the measure done automatically. In manual mode the measure is done after getting 2 crosses and
pressing save button. The recording of measure results is posible only for current date/session selected in combo control.Past dates selection permits only view and computations without recording. Options Contact/Immersions sets a methods of measure (making actions at comon terms of template). The measure can be done separate for left and right eye..Other difference of the Manual mode is that it has VCR, so scans can be recorded and played back. Semiautomatic mode which is defined by pressing Filter button in manual mode state of window works like auto mode, but has additionaly VCR without option to record. It can play scans recorded in manual mode. Reading of scans, is provided by special device or simulator, begins by pressing Measure button or Play button of VCR. On print page there are various settings related to. In demonstration version the DLL reading data from device has void content. The functions do nothing and deliver just ocasional content of buffer memory, so use simulator option. For moving one scan back or forward by using VCR use hot keys F3, F4.
Below are pictures of all 3 modes of measure page.Pay attension that when input goes at rate 1 scan for 0.016 second, the image of graph is not distorted and main result of current measure also is clear. Below is manual mode measure before freeze, setting gates and saving results


Auto measure screen below. On right side results of automatic measurements.
The grid structure was dinamically changed to keep the needed data format for the mode.


Semiautomatic mode below. Green marks on right side grid are selection for printing of results in Print page  Bottom row is selected by dark cursor mark and can be deleted by pressing Delete buttom under the grid.


Calculator provides additional calculations and has input data options for modeling various condions by inserting data in cells of AL, K1, K2 and A-Const, ACD, SF of 2 grids on top left side. Calculations and recalculations are performed automatically
after page became vizible and each input field change.  The Picture below show fragment of page. The screen shot includes edit of cell SF and validation message.
In the colored message presented rounding data to 0.5. Different colors means methods used at calculations. For grid were used merge of cells.





This manual was created with the free trial version of HelpScribble.
This notice will not appear in manuals created with the full version.




Implementation of printing

Below is Printout document and Print Page. The print page has Active X control that keeps the last image it inserted in printout.


Below is print page

This manual was created with the free trial version of HelpScribble.
This notice will not appear in manuals created with the full version.




Creating new Objects and Editing properties of Objects

Below are presented the dialogs for creating and editing records about Doctors.as a kind of servant type
objects in the model of a service. Obviously their set of properties is the most complicated.
First screen addionaly to usual set of identifying properties show assigning references to type lens object.
The second Screen show asigning and calculation of so called personal lens, a known case when servant uses customed tools or/and goods etc.


Assigning customed things used by the servant at service

  

This manual was created with the free trial version of HelpScribble.
This notice will not appear in manuals created with the full version.