 
 [Rainman]'s Soft,                                            www.rainman.id.ru
 -,                                                
 .                                                          rainman@id.ru

 ##############################################################################
 
 Text Mode Library                                       Developed by [Rainman]
  4.6



 

 :

 1.  .
 2.  .
 3.     TML.
 4.    TML.
 5.   TML.
 6.   TML.
 7.   TML.
    7.1.   .
    7.2.   .
    7.3.      .
    7.4.        .
    7.5.   .
    7.6.     .
    7.7.     .
    7.8.  .
 8.   .
 9.  .
 10.  .



 1.  .
 
 TML -          
   MS-DOS   C/C++ ( Borland C++ 3.1).   -
        , -
   ,         
 .             
           .  
     Pascal.        -
     .

 

 2.  . 

         
   :

 \CONFIG\*.*      -    Borland C++ 3.1

 \DOC\TML.TXT     -     TML (CP-866)
 \DOC\TML_WIN.TXT -     TML (Windows-1251)
 \DOC\CHANGES.TXT -      

 \EXAMPLES\*.CPP  -      TML 4.6

 \INCLUDE\TML.H   -   
 \INCLUDE\MODEM.H -      
 \INCLUDE\MOUSE.H -      

 \LIB\TML.LIB     -   ( )

 \README.TXT      -  README   
 \VERSION.TXT     -    

           
  www.tml.nm.ru  www.rainman.id.ru.      -
   www.rainman.lgg.ru.        
 www.download.ru, www.freesoft.ru  .



 3.     TML.

        Borland C++ 3.1. 
  TML 4.6    :

   -  ,      ;
   -  Borland C++ 3.1        
     "Change dir"   "File";
   -    Borland C++ 3.1;
   -        ;
   -      \LIB\TML.LIB;
   -       # include "\include\tml.h", ,
      ,     - # include "\include\mouse.h"  
        - # include "\include\modem.h".

           
  .

      LARGE,     -
 ,      .   -   
      ("Fastest Code").

 !        -
           "\CONFIG"
 .        Borland C++    
    "Options" - "Directories..."    
 Borland C++ "\BC\LIB"  "\BC\INCLUDE"  . ,  -
      "C:\BORLANDC",      
 : "C:\BORLANDC\LIB"  "C:\BORLANDC\INCLUDE".

        
 void AboutBox (int Language)     ,   -
     .



 4.    TML.

        ,  ,   -
  .         C++,
         .    CurrentColor  
 CurrentBackground        
      ,      
    SetCharAttributes (int Color, int Background);   -
   textcolor (int color)  textbackground (int background).

 int CurrentTextMode;       //   
 int CurrentColor;          //    
 int CurrentBackground;     //    

 int WindowIDs [128];       // ,   
 int WindowIDsRegistered;   //   

 int MouseCursorState;      //    
 int MouseEnabledState;     // ,     
                            //   .
                                            

 5.   TML.

  RECTANGLE     .    
   .  

 typedef struct {
                 int Left;
                 int Top;
                 int Right;
                 int Bottom;
                } RECTANGLE;

  WINDOW            .
         
    .

 typedef struct {
                 int WindowID;        //   
                                      
                 int X;               //   
                 int Y;               //   
                 int RightX;          //   
                 int BottomY;         //   

                 char Style;          //  
                 char *Caption;       //  

                 int FrameColor;      //    
                 int Background;      //    
                 int WorkColor;       //    

                 char *SavedText;     //  ,   
                } WINDOW;

   typedef      (-
 )    : WINDOW m_wndLargeWindow. 



 6.   TML.

         
       .

 # define TML_VERSION          //    

 # define WSPACE_WINDOW        //  
 # define DIALOG_WINDOW        //  
 # define SYSTEM_WINDOW        //  

 # define ERROR_MESSAGEBOX     //    
 # define WARNG_MESSAGEBOX     //  
 # define ADVSE_MESSAGEBOX     //  

 # define LANGUAGE_EN          //   
 # define LANGUAGE_RU          //   

 # define FILL_1               //   -
 # define FILL_2               //   -
 # define FILL_3               //   -
 # define FILL_4               //   -

 # define SCROLL_OFF           //    
 # define SCROLL_ON            //    

 # define DIRECT_OUTPUT        //    
 # define BIOS_OUTPUT          //     BIOS

 # define MOUSE_ENABLED        //     
 # define MOUSE_DISABLED       //      

 # define MOUSE_CURSOR_ON      //   
 # define MOUSE_CURSOR_OFF     //    

 # define COM1                 //   COM1
 # define COM2                 //   COM2
 # define COM3                 //   COM3
 # define COM4                 //   COM4

        
 ,       INCLUDE\TML.H  INCLUDE\MOUSE.H, 
         INCLUDE\MODEM.H.



 7.   TML.

           
       ,  -
  (   ),    
   .   ,     
       .      
      ,   -
   .

    4.2,         
  ,            
  T, :

 int IsMouseInside (int Left, int Top, int Right, int Bottom);
 int IsMouseInsideT (int Left, int Top, int Right, int Bottom);

    ,     
        ,      -
 .



 7.1.   .
 
      void PutChar (int X, int Y, char Char);
            .

      void PutLine (int X, int Y, char *Line);
            .

      void PutCenterLine (int LeftX, int RightX, int Y, char *Line);
           ( LeftX  RightX)  
        Y.

      void FillBackground (int Color);
         .
      
      void FillTextArea (int Left, int Top, int Right, int Bottom, char Style);
          .    
       ,    .       
             \SOURCE\TML.CPP.

 7.2.   .
 
      void HLine (int X1, int X2, int Y, char Style);
           .

      void VLine (int X, int Y1, int Y2, char Style);
           .

      void StarFrame (int Left, int Top, int Right, int Bottom);
           "*".

      void RectFrame (int Left, int Top, int Right, int Bottom);
           .

      void SingleFrame (int Left, int Top, int Right, int Bottom);
        .

      void DoubleFrame (int Left, int Top, int Right, int Bottom);
        .

      void CustomFrame (int Left, int Top, int Right, int Bottom, char Style);
       ,     .

 7.3.      .

      void Flush (void);
       ,   .    
          .

      void Beep (int Tone, int Time);
        PC-Speaker.       ,
        -  .

      void SetScrollMode (int Mode);
          (SCROLL_ON  SCROLL_OFF).

      void SetDirectVideoMode (int Mode);
         (DIRECT_OUTPUT  BIOS_OUTPUT).

      void SetCharAttributes (int Color, int Background);
           ( ).

 7.4.        .

      void InitializeWindowIDsList (void);
         .        
           ,      
        int RegisterWindow (WINDOW *WindowPointer); !

      int RegisterWindow (WINDOW *WindowPointer);
           .    -
       .         
       ,    .   -   128.

      int UnRegisterWindow (WINDOW *WindowPointer);
             .    -
        .

      int CreateWindow (WINDOW *WindowPointer); 
       ,      WINDOW.   -
          .

      int DeleteWindow (WINDOW *WindowPointer);
          .

      void SetWindowCaption (WINDOW *WPointer, unsigned char far *Caption);
               .

      void SetMenuItem (int LeftX,
                        int RightX,
                        int Y,
                        int Color,
                        int Background,
                        char *Line);
        ()    Y,  LeftX  RightX. 
        - Color,  - Background,  -  Line.

      int HandleMenu (int LeftX, int RightX, int TopY,
                      int InactiveTextColor, int ActiveTextColor,
                      int InactiveBackground, int ActiveBackground,
                      int CurrentItem, int NumberOfItems, char *String []);
       .      (  0),
       CurrentItem    ,  NumberOfItems  
             String!
                                                      
 7.5.   .

              
       ,      -
           .      - 
            DialogMouseBehavior (int State)
         MOUSE_ENABLED  MOUSE_DISABLED.  -
          ,     
         int InitializeMouse (void).    -
           .

      int SelectColorDialog (int *DefaultColor,
                             int *DefaultBackground,
                             int Language);
        ,      ( -
      )   .     -
              TAB,  
       .

      void MessageBox (unsigned char far *Caption,
                       unsigned char far *Message,
                       int MessageBoxType);
         ,   Caption   -
      ,     Message    255 . -
            .  -
              .   
          \INCLUDE\TML.H  ERROR_MESSAGEBOX (
        ),  WARNG_MESSAGEBOX ( )    -
       - ADVSE_MESSAGEBOX.

      void AboutBox (int Language);
          TML 4.6      .

 7.6.     .

            ,    -
        .    ,   -
              .  
                 
            .

      int InitializeMouse (void);
        (  ,  ).  -
          (0   ).

      void ShowMouseCursor (void);
        .

      void HideMouseCursor (void);
        .

      int GetMouseX (void);
       X-    .  
                    
       .

      int GetMouseY (void);
       Y-    .  
                    
       .

      int GetMouseButtonPressed (int Button);
           .
                                         
      int GetMousePressed (void);
        ,       .

      void SetMousePosition (int X, int Y);
             ( ).

      void SetMouseBorderX (int minX, int maxX);
            ( ).

      void SetMouseBorderY (int minY, int maxY);
            ( ).

      void SetMouseBorder (int minX, int minY, int maxX, int maxY);
            -     -
       .

      void SetMouseHideBorder (int minX, int minY, int maxX, int maxY);
       ,        .

      void SetMouseSensitivity (int SensitivityX, int SensitivityY);
        .

      void DialogMouseBehavior (int State);
          MouseEnabledState  , -
             . -
              .

      int IsMouseInside (int Left, int Top, int Right, int Bottom);
      int IsMouseInsideT (int Left, int Top, int Right, int Bottom);
        ,        -
      ,   .       -
         ,      -   ,   1.
               () - 
      ,   Left=Right  Top=Bottom.

 7.7.     .

               -
               
      .

      unsigned int GetCOMAddress (int Port);
         COM-  (-1)   .  
             INCLUDE\MODEM.H.   
             .

      void COMOut (unsigned int BaseAddress, char Byte); 
          ,   BaseAddress.

      void ModemOut (unsigned int BaseAddress, char *String);
              BaseAddress.

      void SetDTROn (unsigned int BaseAddress);
        DTR  RTS   .

      void SetDTROff (unsigned int BaseAddress);
        DTR  RTS   .

 7.8.  .

      int GetBit (unsigned int Byte, int Bit);      
          Bit  Byte.

      void SetBit (unsigned int *Byte, int Bit, int Value);
        Value   Bit      
      .

      unsigned long GetFreeRAM (void);
          ,  MS-DOS.

      float GetTMLVersion (void);
         ,    -
         .

  ,   ,     -
 .         
         MS-DOS.



 8.   .

      Windows  MS-DOS,  -
        (   
 ),      .    
  :

      -    ;
      -    ;
      -   ;
      -   ;
      -  ,    .

      ,       -
   ,         , 
   E-mail  rainman@id.ru.      -
     www.tml.nm.ru  www.rainman.id.ru.



 9.  .
 
 () 1998-2001, [Rainman].
   .

 Text Mode Library 4.6 (  -   )  -
     ,      
  .       
           -
 .

         
 "AS IS",             
   .      -
           
 .        -
           
    .

           
          -
      .


                                           
 10.  .

  E-mail                                                     rainman@id.ru

   TML                                             www.tml.nm.ru
                                                    www.rainman.id.ru



 ##############################################################################