home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / fish / disks / d1031.lha / Programs / Textfield / History < prev    next >
Encoding:
Text File  |  1994-11-12  |  9.9 KB  |  227 lines

  1. ***************************************************************
  2. *                                                             *
  3. * This file contains the update notes on the textfield.gadget *
  4. *                                                             *
  5. ***************************************************************
  6.  
  7. This file is in reverse chronological now.
  8.  
  9.  
  10. Version 2.0
  11. -----------
  12.  
  13. NEW:
  14.  
  15. - The TextFieldAuto.c and <proto/textfield.h> now contain the
  16.   TextFieldBase like before, and also the TextFieldClass.  This
  17.   keeps the opening and getting of the class hidden for a simpler
  18.   API.  (If you already had a TextFieldClass variable of your own,
  19.   sorry, but you can just remove yours now.)  (SAS/C applicable)
  20.  
  21. - There are now keyboard commands to delete words at a time: Alt-
  22.   Backspace deletes a word at a time to the left of the cursor,
  23.   starting at the current cursor position (if you started at the
  24.   middle of a word, it deletes to the beginning of the word, like
  25.   you would think), Alt-Delete deletes a word at a time to the right
  26.   of the cursor, starting at the current cursor position (again, if
  27.   you are in the middle of a word, it only deletes the last part).
  28.  
  29. - There is a real line delete command now: CTRL-x.  It deletes
  30.   everything on the line.  It's not a command to delete all
  31.   characters between to CRs, though.  It's a visual line delete, not
  32.   conceptual line delete.
  33.  
  34. - Now when you click and drag to scroll the text display, the
  35.   further you are away from the actual gadget bounds, the faster it
  36.   will scroll.
  37.  
  38. - TEXTFIELD_ReadOnly is a new attribute that gives the user a read
  39.   only mode, but the user can still highlight text to use the
  40.   clipboard.  The old way of GA_Disabled and TEXTFIELD_NoGhost can
  41.   still be used for a read only mode without clipboard support.  It
  42.   is important to know that the client (program using the gadget)
  43.   can still add or delete text with TEXTFIELD_Text and
  44.   TEXTFIEL_InsertText.  See the autodoc for more details.  There are
  45.   issues discussed about which keyboard events get passed on to the
  46.   application.
  47.  
  48. - TEXTFIELD_Modified is a new attribute that allows you to tell
  49.   if the text in the gadget has been modified in any way.  It
  50.   to FALSE at creation time, but can be set or read at any time.
  51.   See the autodoc for more details
  52.  
  53. - TEXTFIELD_AcceptChars is a new atrribute that allows you to set
  54.   specifically which characters you will allow in your instance of
  55.   a textfield gadget.  Non-printable characters are still filtered
  56.   for you as usual.  These characters may not be accepted if they
  57.   are also included in the rejection characters.  Also see
  58.   TEXTFIELD_RejectChars.  And check the autodoc for more details.
  59.  
  60. - TEXTFIELD_RejectChars is a new attribute that allows you to set
  61.   specifically which characters to not allow in your instance of a
  62.   textfield gadget.  Non-printable characters are still automatically
  63.   rejected.  Characters listed here are always rejected.  Also see
  64.   TEXTFIELD_AcceptChars.  Check the autodoc for more details.
  65.  
  66. - TEXTFIELD_PassCommand is a flag that if TRUE will cause the gadget
  67.   to pass Right Amiga key sequences on to the application if the
  68.   gadget does not use it.  If FALSE, the gadget just eats the events
  69.   like it always has.  When this is TRUE and a Right Amiga key
  70.   command is received that the gadget does not use, the gadget is
  71.   forced to become inactive (not disabled).
  72.  
  73. - TEXTFIELD_LineLength lets you get a particular line size (the
  74.   number of characters on that line).  You pass the line you want
  75.   and that value gets replaced by that line's length.  See the autodoc
  76.   for some issues when using this.
  77.  
  78. - TEXTFIELD_SelectSize lets you turn on highlighting and set the
  79.   number of character to be highlighted.  It's always the number of
  80.   characters from the current cursor position.  If you pass 0, then
  81.   highlighting is turned off.  You can also get this attribute: 0
  82.   for no highlighting, otherwise returns the number of characters
  83.   highlighted.
  84.  
  85. - TEXTFIELD_MaxSizeBeep allows you to turn on beeping (DisplayBeep())
  86.   if text is entered when the buffer is full (buffer size equals the
  87.   size you passed to TEXTFIEL_MaxSize).
  88.  
  89. - TEXTFIELD_DeleteText allows you to delete text at the current
  90.   cursor position.  Only the size needs to be passed.  This gives
  91.   closure to the text insertion functions.
  92.  
  93. - GA_IntuiText allows you to give the gadget a list of IntuiTexts
  94.   that are rendered relative to the gadget's upper left corner.
  95.  
  96. /* MENU COMMANDS */
  97.  
  98. The following are implemented so that programmers can put them in
  99. a menu to give the user a visual interface to the RAMIGA keys.
  100.  
  101. - TEXTFIELD_Copy if text is highlighted, this will copy it to the
  102.   clipboard.  This command is just like RAMIGA-c when the gadget is
  103.   active.
  104.  
  105. - TEXTFIELD_CopyAll this always copies all the text to the clipboard.
  106.   This command does not affect the state of the gadget.
  107.  
  108. - TEXTFIELD_Cut if text is highlighted, this will erase the text and
  109.   put it on the clipboard.  This command is just like RAMIGA-x when
  110.   the gadget is active.
  111.  
  112. - TEXTFIELD_Paste pastes text from the clipboard to the current
  113.   cursor position.  If there was any highlighted text, it is deleted
  114.   first.  If you need to make sure that text is not highlighted first
  115.   then do set of TEXTFIELD_SelectSize, 0.  This command is just like
  116.   RAMIGA-v when the gadget is active.
  117.  
  118. - TEXTFIELD_Erase will remove all text from the gadget and place it
  119.   in the undo buffer.  This command is just like issuing RAMIGA-e
  120.   when the gadget is active.
  121.  
  122. - TEXTFIELD_Undo will paste from the undo buffer into the gadget,
  123.   just as if the user had hit RAMIGA-u when the gadget is active.
  124.  
  125.  
  126. FIXED:
  127.  
  128. - In V1.2, if you used the ActivateGadget() function on this gadget
  129.   it would get put into highlight mode, and therefore the first
  130.   typed key would be lost.
  131.  
  132. - In previous versions, if you had TEXTFIELD_Partial on, the partial
  133.   line would flicker when editing in the gadget.
  134.  
  135. - In previous versions, the TEXTFIELD_Text attribute did not cause
  136.   the cursor to move to the beginning.  It now does.
  137.  
  138. - TEXTFIELD_ClipStream2 now has a synonym: TEXTFIELD_UndoStream.  The
  139.   new name is easier to remember, but the old name can still be used.
  140.  
  141. - GA_Image used to be offset from the upper left corner of the
  142.   gadget's text box, not the upper left corner of the gadget itself.
  143.   It's now fixed.  (Only applies if border was set to something.)
  144.  
  145. - Apparently there is a bug in RectFill() in pre-3.0 OSes.  I've
  146.   taken measures not to be bit by the bug, which could have shown up
  147.   in previous versions of the gadget.
  148.  
  149. - There was a major effort on my part to update the autodoc to better
  150.   represent the features of the gadget.  It seems that I had really
  151.   only made a sparse effort before, and I apologize.  Each part of the
  152.   main documentation has a section title now.  The document has grown
  153.   by 16K.  I also apologize if you hate reading docs.  And I also
  154.   apologize if you hate apologies.
  155.  
  156. - A bug existed in previous versions that would allow you to have an
  157.   active textfield gadget even if it was disabled.  Specifically, if
  158.   you called ActivateGadget() on a disabled gadget, the gadget would
  159.   go active anyway.  (I thought the OS did that.) It's fixed.
  160.  
  161. - The command to move backword by words (Alt-Cursor left) would skip
  162.   a word if the was at the first of a line sometimes.
  163.  
  164.  
  165. Version 1.2
  166. -----------
  167.  
  168. - The name is no longer editor.gadget.  That name was too general,
  169.   as Christoph Feck pointed out.  The name textfield.gadget has
  170.   been chosen as the new name since it more accurately describes
  171.   the gadget's purpose.  So that you will know how to convert, here
  172.   is a list of files that have changed names that would affect
  173.   development:
  174.  
  175.   doc/editor_gc.doc                 ->  textfield_gc.doc
  176.   doc/editor_gc.guide               ->  textfield_gc.guide
  177.   fd/editor.fd                      ->  textfield.fd
  178.   gadgets/editor.gadget             ->  textfield.gadget
  179.   include/gadgets/editor.h          ->  textfield.h
  180.   include/pragmas/editor_pragmas.h  ->  textfield_pragmas.h
  181.   include/proto/editor.h            ->  textfield.h
  182.  
  183.   Also, in your source code I think I've made it easy to change, but
  184.   if you have problems, I'm very sorry.  Here's how: use your text
  185.   editor to replace all occurances of EDIT_ with TEXTFIELD_.
  186.  
  187. - The text pen now defaults to TEXTPEN instead of SHADOWPEN.
  188.  
  189. - The undo buffer is now cleared after you undo so that you don't
  190.   accidentally undo the same thing multiple times.  I should note
  191.   that the undo function just drops the text at the current
  192.   cursor position.
  193.  
  194. - As per request of a few people, the TEXTFIELD_Down event now
  195.   will not let the last line scroll to the top of the gadget, but
  196.   rather it stops at the bottom, like when you cursor down.
  197.  
  198. - There is no highlight or block mode anymore in the old sense
  199.   of turning it on and off.  You only need to click and drag
  200.   to highlight text.  Hitting any key replaces the highlighted
  201.   text like normal, and hitting backspace or delete removes the
  202.   highlighted text like normal.  The cut, copy, and paste keys
  203.   also work normally.  The new features are that the right and
  204.   down cursor keys unhighlight the text and take you to the
  205.   end of the highlighted text.  And the left and up cursor keys
  206.   unhighlight the text and take you to the front of the
  207.   highlighted text.  (This new method can make scrolling with with
  208.   the mouse pointer unfriendly, and you can accidentally delete
  209.   text after scrolling by hitting a single key, but if an undo IFF
  210.   stream is provided then the user can get the text back.  I have
  211.   asked many people whether they prefer single or double-click
  212.   block modes and it has been about 50-50.  This method conforms
  213.   to modern thinking, from what I understand.)
  214.  
  215. - A memory leak that occurred if the library was expunged has
  216.   been fixed.  It was usually about 4k.
  217.  
  218. - TEXTFIELD_CursorPos now will scroll the text to the position the
  219.   cursor is set to if needed.
  220.  
  221.  
  222. Version 1.1
  223. -----------
  224.  
  225. - The EDIT_Text now works in all cases.  It used to only work
  226.   on creation and get methods.
  227.