From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7572f6fc8125b496 X-Google-Attributes: gid103376,public From: nobody@REPLAY.COM (Anonymous) Subject: Re: How do I insert a carriage return into a multi-line text box (ObjectAda)? Date: 1997/09/12 Message-ID: <199709121418.QAA15476@basement.replay.com>#1/1 X-Deja-AN: 271888825 References: <341825F3.41C67EA6@swl.msd.ray.com> Organization: Replay and Company UnLimited Mail-To-News-Contact: postmaster@nym.alias.net X-001: Replay may or may not approve of the content of this posting X-002: Report misuse of this automated service to X-URL: http://www.replay.com/remailer/ Newsgroups: comp.lang.ada Date: 1997-09-12T00:00:00+00:00 List-Id: <3416D21B.3366@cacd.rockwell.com> On Thu, 11 Sep 1997 13:10:11 -0400, John Cupak {73739} wrote: > Meyer Jeffrey D wrote: > > > > I am writing an application that is using a multi-line text box for a > > status/output window. I cannot, however, insert a carriage return > > character to advance the cursor to the next line for a new status > > output. I can insert an ASCII code 13 (carriage return character), but > > instead of performing a CR, a vertical bar (signifying a non-printable > > character) is inserted into the text box. > > > > Does anybody know if it possible to use a multi-line tet box in this > > fashion, or do I need to wait for a version of ObjectAda that lets me > > use OCX controls (such as a Rich Text Box)? > > > > Thanks in advance, > > Jeff Meyer > > Jeff, > > You should be able to concatenate the ASCII.NL character, as follows: > > Message : constant String := > "Are you REALLY sure you want to delete the file?" & > ASCII.NL & > "Select YES or NO button, below."; Except that NL is not defined in ASCII nor in Ada.Characters.Latin_1, so this should not compile. Jeff Carter PGP:1024/440FBE21 My real e-mail address: ( carter @ innocon . com ) "I fart in your general direction." Monty Python & the Holy Grail Posted with Spam Hater - see http://www.compulink.co.uk/~net-services/spam/