niebres@mct-1.UUCP (Caroline Niebres) (04/11/91)
Hi All!
Sorry, I forgot to mention that I am using 11R3 and Motif 1.0.
(I know, but hopefully soon we'll catch up! We're waiting for
Interactive to get us up to date.)
I need some guidence on a couple of things.
In my application, many values are enter in engineering notation.
The way I have dealt with this so far is to use two text widgets
that are adjacent to each other. I chose not to use just a single
text because the user can modify either the number or the units
and affect the value to send out. I thought maybe subclassing with
the two texts that would give me the value times the units when
read. Would this be reasonable? What is the best way to go about
this? Is there already something out there that does this?
--------------
| -100.5 | mA|
--------------
Another object that my application uses quite a bit of is a
RowColumn that has a label, a widget like the above mentioned,
two text widgets, and a toggle in that order. I need 256 of them.
I need to be able to access the individual widgets in it. Is there
a way to access them without having to save each individual
widget ID? Do I need to subclass here as well?
I also need to save the "state" of the application to a file.
Of course, this means being able to come up in saved state by
reading this file. Is there some standard way to do this?
HELP!
Thanks in advance.
Caroline
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
! Caroline Niebres Software Engineer !
! Micro Component Technology, Inc. St. Paul, MN !
! (612) 482 - 6335 uunet!mct-1!niebres !
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
niebres@mct-1.UUCP (Caroline Niebres) (04/12/91)
>From: uunet!sierra.crd.ge.com!montnaro (Skip Montanaro) >Subject: Widget questions2 >Why not use a radio box or pulldown menu to select the units? Presumably you >can only handle a finite set, and this would save validating the user's >input. >Skip (montanaro@crdgw1.ge.com) This is a good idea, but I still have to do this for each individual value to enter. Part of the problem is that I also need to read the status of the intrument this is connected to. These values are returned as doubles. I then need to convert them to engineering notation. Not all values are of the same type in that some are current, some are voltage, and others are time. Caroline &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& ! Caroline Niebres Software Engineer ! ! Micro Component Technology, Inc. St. Paul, MN ! ! (612) 482 - 6335 uunet!mct-1!niebres ! &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&