TextStyle and Colour

emlowe@fsa.ca
Thu, 27 Jul 1995 16:01:05 -0700 (MDT)

I have a question regarding the use of textStyle and textColor.

Scenario:

field "X" containing a word "foo" and "foo" is blue (hey that
rhymes!).

field "Y".

I want to move "foo" from field "X" to field "Y". That is easy enough.
(put word 1 of field "X" into field "Y"). However, "put" doesn't
maintain the textStyle or Colour, so I need to write some additional
code (set the textColour of word 1 of field "Y" to the textColor of word
1 of field "X")

This works, but if there is a large amount of data that I want to move,
it becomes unwieldy (not to mention slow) to save the textStyle and
Colour for every word in field "Y" and apply it to field "X".

Is there any other solutions?

In case you are wondering what type of UI I have for this situation. I
have two list boxes, one of *possible choices*, and another for
*current choices*. And the user can select items from the possible and
move them to the current. The items in the possible actually consist of
several types of things, so they are designated using different Styles
(bold,italic) and Colour (although the colour may be dropped). Now this
may not be the best UI technique, but for the situation it isn't as
confusing as you may think. It may be best to have 3 separate possible
and current, but that would take up a fair amount of screen area.

Thanks for any help.

-Earle

-- 
Earle Lowe
emlowe@fsa.ca
FSA Corporation
Performance and system software for UNIX networks.