comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: JEWL Editbox_type output numerics
Date: Tue, 14 Dec 2010 14:39:11 +0100
Date: 2010-12-14T14:39:18+01:00	[thread overview]
Message-ID: <1fzhkqs63dt8p$.1l0r292776kb0.dlg@40tude.net> (raw)
In-Reply-To: a9e29d03-3c17-483f-b43d-b18b1043e768@k22g2000yqh.googlegroups.com

On Tue, 14 Dec 2010 05:24:27 -0800 (PST), Rego wrote:

> 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?

Output into a string and then send the string to JEWL.

In one step you can do this with:

   http://www.dmitry-kazakov.de/ada/strings_edit.htm#6

e.g.

   with Strings_Edit.Floats; use Strings_Edit.Floats;
...
   Set_Text (My_Editbox, Image (My_Float, AbsSmall => -2))

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2010-12-14 13:39 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 [this message]
2010-12-14 14:41 ` Jeffrey Carter
replies disabled

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