Alpha Numeric Tables

33 views
Skip to first unread message

Mattm

unread,
May 16, 2012, 9:04:02 AM5/16/12
to IADS
All,

I'm simply trying to convert some screens in X-Windows Motif, and
convert them to IADS displays. I have a tabular display that I want
to use some AlphaNumeric tables to get the same look and
functionality, but it's not quite giving me what I want. I'm trying
to create entries with a label, the value, then the units. Not a
problem. But what I'm noticing is that when I enter a number of
entries (rows), I want the value place holders to line up (which they
don't if the number of digits in the value aren't equal. I guess what
I'm saying is that I'd like the values to be right justified instead
of left, or at least allow that to be changed. I think what would be
even better, is complete control over those fields in each entry.
Left, center, or right justify each one of the those fields, the
label, the value and the units seperately. Does that make sense. If
that's not clear, let me know. I'll try to explain it some more. I
could set up a bank of text boxes to do the same thing I guess, but
the alpha numeric table seems to be the right fit. Thanks.

Matt Menard

Adam Chant

unread,
May 16, 2012, 10:39:29 AM5/16/12
to ia...@googlegroups.com
Matt,
Currently the best way to get all of the Text aligned would be to use the
ActiveX IadsText object. It has the ability to input either typed text or
parameters and align then as necessary. Also if you are going to make a
table you can use the group and Library Tool box. Build up your table, group
the IadsText objects together and then save them to the library. Then you
can just drag that group to another analysis window as is or modify it to
fit your needs.


Adam Chant
Symvionics, Inc.
IADS Application Engineer
(661) 273-7003 x 210
--
You received this message because you are subscribed to the Google Groups
"IADS" group.
To post to this group, send email to ia...@googlegroups.com.
To unsubscribe from this group, send email to
iads+uns...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/iads?hl=en.

Mattm

unread,
May 16, 2012, 12:33:01 PM5/16/12
to IADS
So I guess there aren't any current or future plans to possible make
that alphanumeric tabular display any more flexible? Using that
instead of the text boxes is simpler and a bit easier to build...

Matt
> For more options, visit this group athttp://groups.google.com/group/iads?hl=en.- Hide quoted text -
>
> - Show quoted text -

James Bretz

unread,
May 16, 2012, 12:36:49 PM5/16/12
to ia...@googlegroups.com
Matt,

Alignment get's tricky if you use a proportional font (where each character
could have different widths). I'm sure there are some fixed pitch fonts
available that will handle this issue.

Barring the font, if you want to justify the numbers, try specifying a width
in the "ValueFormat" field such as: % 10.3
Notice the space between the % and the max width of 10 (and then precision
3). The will pad a space to handle +/- sign as well as create a 10 character
area for the number to reside (wherein it will right justify the number).

Here's a reference for the available formatting options:
http://www.cplusplus.com/reference/clibrary/cstdio/sprintf/
Jim

--------------------------------------------------
From: "Adam Chant" <ad...@iads-soft.com>
Sent: Wednesday, May 16, 2012 7:39 AM
To: <ia...@googlegroups.com>
Subject: RE: [IADS] Alpha Numeric Tables

Mattm

unread,
May 22, 2012, 10:33:03 AM5/22/12
to IADS
I'll check that out, thanks. One last thing. I would also be cool to
be able to input a unit that's different from the one in the parameter
default file. I don't want to change it there, but I'd like to one in
the alph-numeric table to be different (sometimes).

On May 16, 12:36 pm, "James Bretz" <j...@iads-soft.com> wrote:
> Matt,
>
> Alignment get's tricky if you use a proportional font (where each character
> could have different widths). I'm sure there are some fixed pitch fonts
> available that will handle this issue.
>
> Barring the font, if you want to justify the numbers, try specifying a width
> in the "ValueFormat" field such as: % 10.3
> Notice the space between the % and the max width of 10 (and then precision
> 3). The will pad a space to handle +/- sign as well as create a 10 character
> area for the number to reside (wherein it will right justify the number).
>
> Here's a reference for the available formatting options:http://www.cplusplus.com/reference/clibrary/cstdio/sprintf/
> Jim
>
> --------------------------------------------------
> From: "Adam Chant" <a...@iads-soft.com>

Adam Chant

unread,
May 22, 2012, 10:47:47 AM5/22/12
to ia...@googlegroups.com
Matt,

There is no easy way to add an arbitrary text string to the alpha numeric
table, but in the IADS ActiveX Text box just type in your text after the
number format %0.3f in the Value Format property. So instead of the '%0.3'
it would be '%0.3 ips'.
Reply all
Reply to author
Forward
0 new messages