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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e3dab9d82ac3f774 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!news.tornevall.net!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: JEWL Editbox_type output numerics Date: Tue, 14 Dec 2010 07:41:24 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: NNTP-Posting-Host: ccd55b7426db0321158a736dc308616c Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: 3a3c028ed94954dc3558d4b90a4d8f54 X-Complaints-To: abuse@tornevall.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=3a3c028ed94954dc3558d4b90a4d8f54 X-Complaints-Italiano: Non abbiamo padronanza della lingua italiana - se mandate una email scrivete solo in Inglese, grazie X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Xref: g2news2.google.com comp.lang.ada:16898 Date: 2010-12-14T07:41:24-07:00 List-Id: On 12/14/2010 06:24 AM, Rego wrote: > Hi, > I have a JEWL editbox_type which I want to output a float number in a > 0.00 format (instead of exponencial 0.0e0 format). The default way > (which shows exponencial) is to do > Set_Text (My_Editbox, Float'Image (My_Float)), > so but how do I do this the other way? Within the language, you use an instantiation of Ada.Text_IO.Float_IO to put the value to a string, then pass (something derived from) that string to Set_Text. Or you can use a library such as the PragmAda Reusable Components; see PragmARC.Images: http://pragmada.x10hosting.com/ -- Jeff Carter "From this day on, the official language of San Marcos will be Swedish." Bananas 28