home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / cplus / 18907 < prev    next >
Encoding:
Text File  |  1993-01-10  |  1.0 KB  |  24 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!emory!athena!ravi
  3. From: ravi@athena.cs.uga.edu (Ravi Vemuri)
  4. Subject: modifying TInputLine to handle integers/ reals etc..need help
  5. Message-ID: <C0ntu3.22I@athena.cs.uga.edu>
  6. Organization: University of Georgia, Athens
  7. Date: Sun, 10 Jan 1993 22:44:27 GMT
  8. Lines: 14
  9.  
  10. This is a novice TVision question.
  11. I am having prbs creating a TInputLine object to handle integers. I overrode
  12. the setdata and getdata functions by incorporating function calls for
  13. string to integer conversion and viceversa. However, there are a few prbs
  14. I could'nt overcome(and hence, works only partly!):
  15. 1. my object does not respond to <Enter> key like the parent object does.
  16. 2. I didnot override datasize(), but i think i should. however, the manual
  17. does state that the simple str to int and int to str conversions should
  18. suffice.
  19.     I hope I have made myself clear. If any of you out there have some
  20. experience (and am sure there are many), I'll be glad to elaborate on this
  21. inquiry further.
  22. thanx,
  23. ravi
  24.