home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!olivea!charnel!sifon!thunder.mcrcim.mcgill.edu!poly-vlsi!music.mus.polymtl.ca
- From: CT80@music.mus.polymtl.ca (Steph)
- Newsgroups: comp.lang.pascal
- Subject: TVision : BUG in my head or in TV?
- Message-ID: <30DEC92.02775797.0033@music.mus.polymtl.ca>
- Date: 30 Dec 92 07:34:12 GMT
- Sender: usenet@music.mus.polymtl.ca
- Organization: Ecole Polytechnique de Montreal
- Lines: 18
-
- Stumbled on something weird tonight. I'd like to know if it's
- my fault, and if so, why. Quite scary. Here's some parts of
- the actual code..
-
- PSmartText = ^TSmartText;
- TSmartText = OBJECT(TStaticText)
- EndOfStatic : WORD;
-
- CONSTRUCTOR Init(VAR Bounds : TRect; AText : STRING; MyUpdate : WORD)
- . . .
- END;
-
- Now, here's the catch :
-
- CONSTRUCTOR TSmartText.Init(...);
- BEGIN
- EndOfStatic := LENGTH(AText);
- .. add spaces at the end of AText;
-