×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
On 03/03/2010, at 7:58 AM, dale janus wrote:
Does anyone know if this technique will remove the column
separator? Or
will I just spend a lot of time bit twiddling and still get yellow or
turquoise with column separators?
Simple answer is no. James Lampert explained why: The bit settings for
Yellow and Turquoise also include the bit for Column Separator. For
example:
CS b'00110000'
Yellow b'00110x1x'
Turquoise b'00111x1x'
x indicates the bit does not affect the colour. Attribute bytes always
start with b'00' to distinguish them from Field Format Words (b'01')
and Field Control Words (b'10') and bit 2 of a Display Attribute is
always 1.
However, there is a way that may work for you. The 5250 data stream
supports Extended Attributes. These are like PC display attributes
where they do not occupy space in the displayable screen (unlike
normal 5250 display attributes). Although DDS does not provide support
for Extended Attributes PC5250 does. You could use the DSM APIs to
write extended attributes to the display. The start position for the
beginning attribute would be the same as the position of the first
character position for the field (i.e., after the normal field start
attribute. The start position for the ending attribute would be the
same as the last character position for the field (i.e., before the
normal field end attribute). Extended attributes will give you the
same 7 colours as DDS but without Column Separators plus 7 new colours
that are different shades. Thus 2 shades of blue, 2 shades of yellow,
etc.). Because Extended Attributes do not occupy screen space you can
use them to change the colour of individual characters.
I'm fairly sure you can mix both DDS output and DSM output. You'd have
to WRITE the DDS format, then send the DSM extended attribute stuff
(ensuring you don't clear the screen), and then READ the DDS format.
In the worst case you could use DSM to build the entire screen instead
of DDS--depends on how badly you want the different highlighting
options.
Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software OS/400, i5/OS Technical Specialists
http://www.flybynight.com.au/
Phone: +61 2 6657 8251 Mobile: +61 0411 091 400 /"\
Fax: +61 2 6657 8251 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------
As an Amazon Associate we earn from qualifying purchases.