home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17969 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  1.5 KB

  1. Path: sparky!uunet!amusing!grace!Douglas_Stockman
  2. From: Douglas_Stockman@graceUUCP (Douglas Stockman)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: gadtools.library stringgad help
  5. Distribution: world
  6. Message-ID: <Douglas_Stockman.1mpl@graceUUCP>
  7. Date: 30 Dec 92 10:49:13 EST
  8. Organization: Graceful Boot BBS (send replies to User_Name%grace@moscom.com)
  9. Lines: 21
  10.  
  11. Greetings,
  12.      I need some enlightenment regarding the use of gadtools.library string
  13. gadgets.  I have a string gadget that text/numbers are entered into.  This
  14. string gadget is part of a spreadsheet-like data entry window.  I want the
  15. user to be able to strike a keyboard key that signals my program to
  16. activate the string gadget, place the entered character into the string
  17. gadget, and move the active cursor in the string gadget to the position
  18. after the first character entered.  So far I can activate the string gadget
  19. and place the pressed character into the string gadget when the user
  20. presses a desired key.  The trouble is the active string gadget cursor
  21. remains on the first character entered.  If the user continues to enter
  22. text, the new text is inserted before the first character entered placing
  23. the first character entered at the end of the entered text (e.g. elpH,
  24. instead of: Help).  I noticed in RKM:Libraries that NON gadtools.library
  25. string gadgets allow a BufferPos variable to be set which controls where
  26. the cursor appears.  Is there a legal way to do the same thing using a
  27. gadtools.library string gadget????  All help is greatly appreciated.
  28.  
  29.  
  30. -- Via DLG Pro v0.992
  31.  
  32.