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