comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: JEWL Editbox_type output numerics
Date: Tue, 14 Dec 2010 07:41:24 -0700
Date: 2010-12-14T07:41:24-07:00	[thread overview]
Message-ID: <ie7vuh$g9q$1@tornado.tornevall.net> (raw)
In-Reply-To: <a9e29d03-3c17-483f-b43d-b18b1043e768@k22g2000yqh.googlegroups.com>

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



      parent reply	other threads:[~2010-12-14 14:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-14 13:24 JEWL Editbox_type output numerics Rego
2010-12-14 13:39 ` Dmitry A. Kazakov
2010-12-14 14:41 ` Jeffrey Carter [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox