home *** CD-ROM | disk | FTP | other *** search
/ Hot Shareware 35 / hot35.iso / ficheros / LC / SIMPWN93.ZIP / SIMPWIN.ZIP / SIMPWN92.DOC < prev    next >
Text File  |  1998-06-23  |  22KB  |  666 lines

  1.                              
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.                 Simpwin v9.2 copyright 1994-97 by
  22.                         Bruce O'Banion
  23.  
  24.             MSDOS copyright 1987-91 Microsoft Corp.
  25.      Turobo C 2.0 and C++ 1.0 copyright Borland International
  26.                              
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.                         
  54.  
  55.  
  56.  
  57.                           Table of Contents
  58.                              
  59. General Info ............................ Page 3
  60. Support ................................. Page 4
  61. Simpwin 93 Functions .................... Page 5
  62. Mouse 92 Functions ...................... Page 9
  63. Defines ................................. Page 11
  64. Legal Stuff ............................. Page 12
  65.                              
  66.  
  67.                              
  68.                              
  69.                              
  70.                              
  71.                              
  72.                              
  73.                              
  74.                              
  75.                              
  76.                              
  77.                              
  78.                              
  79.                              
  80.                              
  81.                              
  82.                              
  83.                              
  84.                              
  85.                              
  86.                              
  87.                              
  88.                              
  89.                              
  90.                              
  91.                              
  92.                              
  93.                              
  94.                              
  95.                              
  96.                              
  97.                              
  98.                              
  99.                              
  100.                              
  101.                              
  102.                              
  103.                              
  104.                              
  105.                              
  106.                              
  107.                              
  108.                              
  109.                              
  110.  
  111.  
  112.  
  113.                             General Info
  114.                              
  115.    Simpwin 93 is a text graphic orientated Turbo c utility. The 
  116. basic system used is file allocation with a static 10k buffering 
  117. system. This system achieves a small static ram usage with 
  118. virtual unlimited capacity. Literally thousands of windows, menus, 
  119. and forms can be used and the library will remain a static 0k ram 
  120. usage. The libraries are small, ranging from less than 12k to max 
  121. 14k for the large library. This gives you a total ram usage of max 
  122. 17k with Mouse libs. 2k to 4k is call in and out with malloc for 
  123. some functions. All functions return 0 on success and 1 on failure 
  124. except cursor hide/show.
  125.   SKDEF92.H is the special key bios codes (F, ALT, PageUP/DN, 
  126. CURSOR) and should be included if these are to be used.
  127.   Swtut92 is a on line help and tutorial study code that can be 
  128. run in shell from the compiler. All of this documentation can be 
  129. viewed from it with full menuing selection.
  130.   Mouse 92 is the mouse functions and can be include or not used
  131. in your program. These malloc nothing and are less than 3k.
  132.   Lfsw92.exe is a text font loader with the file name of the font 
  133. as a parameter. I have included readoc92.exe to print and read 
  134. documents. Also included is instal92.exe for auto install
  135. deinstall. Page formating for docs is 69 characters lines by 56 
  136. lines for the paging to come out right. Pages begain at lines
  137. 1,57,113,169,225,ect... . Strings longer than 69 characters 
  138. will be truncated.
  139.   Instal92.exe takes two files, an install.lst with copy or 
  140. decompression commands and deinstal.lst (see files). Just 
  141. create a directory that you wish to use (C:\TEMP) and at the
  142. prompt for the directory you have your instal92 files in type
  143. instal92 and full path (instal92 C:\TEMP). I also have included 
  144. delist to creat your packing and deistall lists. Just make a text
  145. file of the directory you have your packing files in 
  146. (DIR > list.txt) then copy it to a temp file with delist.exe then
  147. execute and it will creat packing.lst and deinstal.lst for you.
  148. You will all so find all the source code.
  149.  
  150.   If you like this and want more contact me (see support). I am 
  151. trying a new concept that is old as computing: small and static. 
  152. I plan to bring several products out that follow this in the 
  153. future so give me some hints as to what you want.
  154.  
  155.   Simpwn92 libraries were compiled on a 386 clone using Turbo C 
  156. 2.0 and Turbo C++ 1.1. Coprocessor emulation was used.
  157.  
  158.                                         Sincerely
  159.                                         Bruce R. O'Banion
  160.                                         President of Simply Soft
  161.  
  162.                         
  163.                         
  164.                         
  165.                         
  166.  
  167.                   
  168.  
  169.                             Support
  170.  
  171. I will be available for tech support at this address:
  172.      
  173.            Bruce R. O'Banion
  174.            RT 1 Box 148A
  175.            Pauls Valley,OK 73075
  176.        
  177.            Phone: 405-665-4042  (24hr answer machine)
  178.                   405-665-4047     
  179.  
  180. or leave me a note on at simplyst@telepath.com
  181.  
  182. or visit my Home Page: 
  183.  
  184.            http://www.telepath.com/simplyst/homepage.htm
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.                    
  192.                    
  193.                    
  194.                    
  195.                    
  196.                    
  197.                    
  198.                    
  199.                    
  200.                    
  201.                    
  202.                    
  203.                    
  204.                    
  205.                    
  206.                    
  207.                    
  208.                    
  209.                    
  210.                    
  211.                    
  212.                    
  213.                    
  214.                    
  215.                    
  216.                    
  217.                    
  218.                    
  219.                    
  220.                    
  221.                            
  222.  
  223.  
  224.                             
  225.                          Window Functions
  226. _________________________________________________________________   
  227.  
  228.    Simp_window() is the basic window function. It dose not mask 
  229. so what is on screen a the time of call is lost. If you study the 
  230. simptut code you will see that I use simp_window() as a base 
  231. window and with mouse along with a screen save. The parameters for 
  232. this function are the corner coordinates left, top, right, bottom. 
  233. The boarder and shadow styles are next. Then come the text 
  234. attributes foreground and back ground. Next is the shadow 
  235. location. After that come the shadow attributes fore and back. 
  236. Last the boarder character if needed and the fill character. The 
  237. window coordinates are from 1 to 80 for left and right and 1 to 25
  238. for top and bottom. Boarder styles are 0 through 5: 0 for no 
  239. boarder, 1 for single, 2 for double, 3 and 4 for single/double 
  240. line, and 5 for any ASCII character boarder. Shadow style are 0 
  241. through 3: 0 for no shadow, 1 for wide shadow, and 3 for narrow 
  242. shadow. Color attributes for text and shadows are standard text 
  243. colors 0 to 15. Colors 8 to 15 in the back ground set the blink 
  244. bit. The shadow locations are 1 to 4 (see simpwn92.h for defines). 
  245. And last the border and fill characters are any ASCII code 0 
  246. through 255. 
  247.  
  248.    Example:
  249.  
  250.       simp_window(20,5,60,20,5,2,14,4,1,8,0,170,190);
  251.  
  252.       This will display a window 40 x 15 with a boarder of 
  253.       character 190 with a narrow shadow with yellow text on a red 
  254.       background.
  255. ________________________________________________________________
  256.    Save_screen() will save the current screen to screen save file 
  257.    at the designated record number. 0 is a fast buffer save.
  258.  
  259. Example:
  260.  
  261.    save_screen(2);
  262.    
  263.    This saves the current screen to record number 2 in screen.dat.
  264. ________________________________________________________________
  265.    Load_screen is the other half of screen save and works the 
  266. same. 0 is a fast buffer load.
  267.    
  268. Example:   
  269.    
  270.    load_screen(2);
  271.    
  272.    This will load the screen record 2 from screen.dat and display 
  273.    it.
  274. ________________________________________________________________
  275.  
  276.  
  277.                            
  278.  
  279.  
  280.                             
  281.                          Window Functions
  282. _________________________________________________________________
  283.    Init_window() initiates the temp files and mallocs the 
  284. buffering. It's parameters are the number of windows, screen 
  285. saves, and the drive to use (a ram disk can be used).
  286.    
  287. Example:
  288.  
  289.    init_window(20,5,"D");
  290.    
  291.    This will init the utility to use 20 windows, 5 screen saves, 
  292.    and drive D.
  293. ________________________________________________________________
  294.    Uninit_window() will delete the temp files and free any 
  295. malloced buffers.
  296.    
  297. Example:
  298.  
  299.    uninit_window();   
  300.  
  301.    This call frees malloc memory and removes the temp files.
  302. ________________________________________________________________
  303.    Popup_window() is the basic mask window call. It has the same 
  304. parameters as simp_window() except for the first one and that is 
  305. the record or file number. This call will not error if the file 
  306. number is greater than the number of windows initialized but after 
  307. the maxed initialized they must be called in sequence or the wrong 
  308. file number will be saved. Once called it can be called then in 
  309. any sequence. Popup_window() should be called only for windows 
  310. that are not made either by makefile or make_window() since it 
  311. will change the parameters saved for that window. The file number 
  312. can be defined as a name (est. QUIT_WIN) using a define statement.
  313.          
  314. Example:
  315.  
  316.    Popup_window(31,20,10,60,12,1,2,7,0,1,8,0,0,0);
  317.  
  318.    This will display window 31 that is 40 x 3 with a single 
  319.    boarder, narrow shadow and lightgray characters on a black 
  320.    background.
  321. ________________________________________________________________
  322.    Unpopup_window() restores the screen info save by the last 
  323. call to popup_window() for a particular file number. It has only 
  324. one parameter the file number.
  325.              
  326. Example:
  327.  
  328.    unpopup_window(4);
  329.  
  330.    This will unpop window 4.
  331. ________________________________________________________________
  332.  
  333.                            
  334.  
  335.  
  336.                             
  337.                          Window Functions
  338. _________________________________________________________________
  339.     Get_string() is a standard string entry. It has backspace 
  340. with no cursor or insert. It is masked and formated. It's 
  341. parameters are:pointer to string, a mask string, a format string, 
  342. X and Y coordinates, Mask strip switch, and default display switch. 
  343. The mask string is any ASCII character for and space for a mask, 
  344. The format string is made up of spaces where masked and format 
  345. characters. Both mask and format must be consistent for proper 
  346. function. Error detection is in the debug lib but masked 
  347. characters and entries must match. The strip switch is ON for 
  348. stripping the mask form entry and 0 for the masks inclusion in 
  349. entry. The default display switch is ON or 1 to display what is 
  350. in the enter string and OFF or 0 for no display and mask display. 
  351. The x y coordinate are for display placement in the current window.
  352.          
  353. Example:
  354.  
  355.    char name[10];
  356.        
  357.    get_string(name,"         ","uAAAAAAAA",3,3,1,1);
  358.  
  359.    This call will display the contents of name at coordinates 3, 
  360.    3, mask all but alpha characters and force an upper case on the 
  361.    first entry. It will strip the mask and if any character but 
  362.    backspace is hit first clear name. It will exit on esc with no 
  363.    data change or return.
  364.  
  365.    Format characters:                     
  366.                                                    
  367. *  any ascii character                   
  368. A  alphanumeric character                
  369. U  upper case alpha only                 
  370. L  lower case alpha only                 
  371. u  forced upper case alpha               
  372. l  forced lower case alpha               
  373. 9  digits 0 - 9 only                                      
  374. #  digits 0 - 9 and -
  375. F  digits 0 - 9, -, . only               
  376. e  digits 0 - 9, -, ., e, E only
  377. h  digits 0 - 9, a,b,c,d,e.f,A,B,C,D,E,F,- only
  378. o  digits 0 - 7,- only
  379. T  t, T, f, F only
  380. Y  y, Y, n, N only
  381. ________________________________________________________________
  382.    Clear_window() will clear and fill the current window with the 
  383. fill character. This can be any ASCII code character.
  384.    
  385. Example:   
  386.    clear_window(0);
  387.     
  388.    This will fill the current window with null or space characters 
  389.    leaving the boarder untouched.
  390.  
  391.  
  392.                             
  393.                            Window functions
  394. __________________________________________________________________
  395.    Show_cursor() turns the IBM cursor off.
  396.    
  397.    Example:
  398.  
  399.      show_cursor();
  400.     
  401.      This will show or display the IBM cursor.
  402.  
  403.  
  404. ________________________________________________________________
  405.    Hide_cursor() turns the IBM cursor off.
  406.    
  407.    Example:
  408.  
  409.      hide_cursor();
  410.     
  411.      This will hide or turn off the IBM cursor display.
  412. ________________________________________________________________
  413.    Write_window() is like printf but has positioning parameters. 
  414.    
  415. Example:
  416.  
  417.    char name[20] = "bruce";
  418.    
  419.    write_window(3,5,"My name is %s",name);
  420.    
  421.    This will display 'My name is bruce' at 3,5 of the current 
  422.    window.
  423. ________________________________________________________________
  424.    Read_text() will display a text file in the current window 
  425. truncating 0, wraparound 1 (both with page up/dn), wait for key 2, 
  426. and display and exit 3.
  427.  
  428. Example:
  429.  
  430.    read_text("mou.doc",1);
  431.     
  432.    This will display the text of mou.doc page by page int the 
  433.    current window with wraparound.
  434. ________________________________________________________________
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.                            
  445.  
  446.  
  447.  
  448.                             
  449.                            Mouse Functions       
  450. __________________________________________________________________
  451.    Mouinstall() sets up the mouse functions by there is no 
  452. uninitimouse required. 
  453.  
  454.    Example:
  455.  
  456.         mouinstalled(void);
  457.  
  458.    This sets the mouse driver and returns the number of buttons 
  459.    installed.
  460. ________________________________________________________________
  461.    Moureset() resets the mouse driver.
  462.  
  463.    Example:
  464.  
  465.         moureset(void);                
  466.  
  467.    This resets the mouse diver.       
  468. ________________________________________________________________   
  469.    Moubuttonpressed() checks to see if a mouse button is pressed. 
  470. It takes the number of the button (LEFT 0,MID 2,RIGHT 1) and 
  471. returns number of presses since last checked.
  472.                                    
  473.    Example:                     
  474.  
  475.         moubottonpressed(0);
  476.  
  477.    This returns the number of left button presses since last 
  478.    checked.
  479. ________________________________________________________________
  480.   Mouhide() will hide the standard text mouse cursor.
  481.  
  482.    Example:
  483.  
  484.         mouhide(void);
  485.  
  486.    This hides the standard cursor.
  487. ________________________________________________________________
  488.   Moushow() will display the standard text cursor.
  489.  
  490.   Example:
  491.  
  492.         moushow(void);
  493.  
  494.   This Shows the cursor.
  495. ________________________________________________________________
  496.  
  497.  
  498.  
  499.  
  500.  
  501.                             
  502.  
  503.  
  504.                             
  505.                            Mouse Functions
  506. _________________________________________________________________
  507.    Mousetposition() places the mousecursor at the coordinates x, 
  508. y.
  509.  
  510.    Example:
  511.  
  512.         mousetposition(5,7);
  513.  
  514.    This puts the mouse cursor at position 5,7 in the 80x25 text 
  515.    screen.
  516. ________________________________________________________________
  517.    Mouposition() gets the current x,y coordinates of the mouse in 
  518.    the 80x25 text screens.
  519.  
  520.    Example:
  521.         int x,y;
  522.  
  523.         mouposition(&x,&y);
  524.  
  525.    This returns the current cursor position for mouse in x,y.
  526. ________________________________________________________________
  527.    Mousetmaxposition() Limits mouse movement to the window found 
  528. in max and min x,y.
  529.  
  530.    Example:
  531.  
  532.         mousetmaxposition(4,10,5,9);
  533.  
  534.    This limits the mouse to window 4,10,5,9.
  535. ________________________________________________________________
  536.    Moubuttonrelease() returns the number of releases since last 
  537. check for the button given (LEFT 0, MID 2,RIGHT 1).
  538.  
  539.    Example:
  540.  
  541.         moubottonrelease(1);
  542.  
  543.    This returns the number of releases since last check of button 
  544.    RIGHT.
  545. ________________________________________________________________
  546.   Moucursortype() selects the cursor type. ) is reverse video.
  547. 1 to 254 are the ASCII character codes. so any ASCII character
  548. can be used as the cursor.
  549.  
  550. Example:
  551.  
  552.   moucursortype(0x02);
  553.  
  554.   This will make the cursor a HAPPY FACE.
  555. _______________________________________________________________
  556.  
  557.                             
  558.  
  559.  
  560.                             
  561.                        Special key defines:
  562. __________________________________________________________________
  563.   ESC            283   F1 15104    ALT_F1  26624    SHIFT_TAB 3840
  564.   PGDN         20736   F2 15360    ALT_F2  26880    BACKSPACE 3592
  565.   PGUP         18688   F3 15616    ALT_F3  27136    DEL      21248
  566.   CURSOR_UP    18432   F4 15872    ALT_F4  27392    TAB       3849 
  567.   CURSOR_DN    20480   F5 16128    ALT_F5  27648
  568.   CURSOR_LEFT  19200   F6 16384    ALT_F6  27904
  569.   CURSOR_RIGHT 19712   F7 16640    ALT_F7  28160
  570.   ENTER         7181   F8 16896    ALT_F8  28416
  571.   HOME         18176   F9 17152    ALT_F9  28672
  572.   END          20224   F10 17408   ALT_F10 28928
  573.   
  574.   ALT_A   7680    ALT_B  12288    ALT_C  11776    ALT_D   8192
  575.   ALT_E   4608    ALT_F   8448    ALT_G   8704    ALT_H   8960
  576.   ALT_I   5888    ALT_J   9216    ALT_K   9472    ALT_L   9728
  577.   ALT_M  12800    ALT_N  12544    ALT_O   6144    ALT_P   6400
  578.   ALT_Q   4096    ALT_R   4864    ALT_S   7936    ALT_T   5120
  579.   ALT_U   5632    ALT_V  12032    ALT_W   4352    ALT_X  11520
  580.   ALT_Y   5376    ALT_Z  11264     
  581. _________________________________________________________________
  582.                         Other Defines:
  583.  
  584.        boarder:             shadow style:     shadow location:
  585.  
  586.   NO_BOARDER       0      NO_SHADOW      0     LOWER_LEFT   1
  587.   SINGLE_BOARDER   1      NARROW_SHADOW  2     UPPER_LEFT   2
  588.   DOUBLE_BOARDER   2      WIDE_SHADOW    1     LOWER_RIGHT  3
  589.   SIG_DUB_BOARDER  3                           UPPER_RIGHT  4
  590.   DUB_SIG_BOARDER  4      
  591.   ANY_BOARDER      5 
  592. _________________________________________________________________
  593.                      Word Defines:
  594.  
  595.     ON    1     OFF   0   YES   1  NO    0  EOF  -1
  596.  
  597. _________________________________________________________________
  598.                        Mouse Defines:
  599.  
  600. LEFTBUTTON   0        BLINKCUR     0x8000
  601. RIGHTBUTTON  1        INVERSCHAR   0x3300
  602. MIDBUTTONT   2        STANDARDCUR  0
  603. _________________________________________________________________                   
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.                             
  619.                            DISCLAIMER - AGREEMENT
  620.  
  621.       Users of Simpwin 9.3 must accept this disclaimer of warranty:
  622.    Simpwin92 is supplied as is.  The author disclaims all
  623.    warranties, expressed or implied, including, without 
  624.    limitation, the warranties of merchantability and of fitness 
  625.    for any purpose. The author assumes no liability for damages, 
  626.    direct or consequential, which may result from the use of 
  627.    Simpwin92.
  628.  
  629.       Simpwin 9.3 is a "freeware program" and is provided at no 
  630.    charge to the user.  Feel free to share it with your friends, 
  631.    but please do not give it away altered in any way. You may 
  632.    use any of the souce code but please give proper credit in
  633.    your docs.
  634.  
  635.       Anyone distributing Simpwin 9.3 for any kind of remuneration 
  636.    must first contact Bruce O'Banion for authorization.
  637.  
  638.                         Ombudsman Statement
  639.  
  640.     "This program is produced by a member of the Association
  641.     of Shareware Professionals (ASP).  ASP wants to make sure
  642.     that the shareware principle works for you. If you are
  643.     unable to resolve a shareware-related problem with an ASP
  644.     member by contacting the member directly, ASP may be able
  645.     to help. The ASP Ombudsman can help you resolve a dispute
  646.     or problem with an ASP member, but does not provide
  647.     technical support for members' products. Please write to
  648.     the ASP Ombudsman at 157-F Love Ave., Greenwood, IN 46142
  649.     USA, FAX 317-888-2195, or send email to omb@asp-shareware.org
  650.  
  651. ****************************************************************
  652.  
  653.          NOTE:  simpwn93.zip is packaged on this disk using 
  654.          Info-ZIP's compression utility.  The installation program 
  655.          uses UnZip to read zip files from the disk.  Info-ZIP's 
  656.          software (Zip, UnZip and related utilities) is free and 
  657.          can be obtained as source code or executables from various 
  658.          bulletin board services and anonymous-ftp sites, including 
  659.          CompuServe's IBMPRO forum and ftp.uu.net:/pub/archiving/
  660.          zip/*. 
  661. ****************************************************************
  662.  
  663. TURBO C++ 1.0 copyright 1990 Borland International
  664. TURBO C 2.0 copyright 1987,1988 Borland International
  665. MS-DOS 5.0 copyright 1987-1991 Microsoft Corp.
  666.