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.9 required=5.0 tests=BAYES_00,WEIRD_QUOTING autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.157.44.38 with SMTP id f35mr23035365otb.14.1470668087046; Mon, 08 Aug 2016 07:54:47 -0700 (PDT) X-Received: by 10.157.47.97 with SMTP id h88mr2456087otb.10.1470668087013; Mon, 08 Aug 2016 07:54:47 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!f6no8323499ith.0!news-out.google.com!d130ni28722ith.0!nntp.google.com!f6no8323494ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 8 Aug 2016 07:54:46 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=95.173.128.204; posting-account=YB4WOgoAAABLG9D7qoJiPBc6EJSzsPDF NNTP-Posting-Host: 95.173.128.204 References: <317c7c35-7260-4b0a-9615-b8616c87dfdc@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <995dcf3b-cc66-4179-8922-1a0b0d71d68a@googlegroups.com> Subject: Re: Gtkada, Gtkada_Builder.Add_From_String problem. From: George J Injection-Date: Mon, 08 Aug 2016 14:54:47 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:31319 Date: 2016-08-08T07:54:46-07:00 List-Id: =D0=BF=D0=BE=D0=BD=D0=B5=D0=B4=D0=B5=D0=BB=D1=8C=D0=BD=D0=B8=D0=BA, 8 =D0= =B0=D0=B2=D0=B3=D1=83=D1=81=D1=82=D0=B0 2016 =D0=B3., 17:34:31 UTC+3 =D0=BF= =D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Dmitry A= . Kazakov =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > On 2016-08-08 15:24, George J wrote: > > Hi all! Today i've got a problem with Add_From_String method of > > Gtkada_Builder. I have an xml (GLADE) file, which loading fine with > > Add_From_File. So i've copied text in String var, and Add_From_String > > doesn't work. May be I don't know some feature of this method? > > > > there are to examples i've made > > 1. > > use ASCII; > > UI_Str : String :=3D > > "" & > > "" & > > "" & > > "" & > > "" & > > "" & > > "" & > > "" &............ > > > > 2. > > use ASCII; > > > > UI_Str : String :=3D > > "" & LF & CR & > > "" & LF & CR & > > "" & LF & CR & > > "" & L= F & CR & > > "" & LF & CR & > > "" & LF & CR & > > "" & LF & CR & > > "" & LF & CR &........... > > > > Result: > > .............. > > if 0=3DBuilder.Add_From_String(Buffer =3D> UI.UI_Str, > > Error =3D> Error'Access) then > > return;-- <--Comes here!!!! > > end if; >=20 > Error should contain some info, though I presume that the interpreter=20 > does not understand LF-CR line terminator. Try LF instead, or none. >=20 > Better though, never ever use either GLADE or XML. >=20 > --=20 > Regards, > Dmitry A. Kazakov > http://www.dmitry-kazakov.de Yes,Dmitry!Thanks for reply!Error returned 0x440. I'm coming home now, so d= idn't look for what it means yet. And for " never use GLADE or XML " : i do= n't know how to make beautiful and understandeable GUI with Ada in other wa= y. Could you suggest something? Ok. I'll try with LF. Thanks!