× 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.


  • Subject: RE: Color in messages
  • From: "Bale, Dan" <DBale@xxxxxxxxxxxxxxxx>
  • Date: Mon, 6 Mar 2000 13:47:04 -0500

Ah, yes, I remember that problem well!

The way to get around this problem is to define a message field for each
color change you want to display in the message.  In other words, if you
want to display a message:  "Customer ID 155675 not found on file" and you
want "155675" to be highlighted/colorized, then your message description
would look like: "Customer ID &1 not found on file".  Field &1 in your
message description would be defined as (at least) 8-character.  Your
program would fill this field by pasting the display attribute characters at
the beginning and the end of the 8-character field, and put the customer ID
in starting at position 2; probably best set up in a data structure, i.e.:
     d msgdata         ds                            
     d  hilite                 1      1a   Inz(x'22')
     d  CustomerID             2      7a             
     d  normal                 8      8a   Inz(x'20')

I seem to recall that the display attribute only shows up in the message
that appears in the message subfile window; if you hit help on a message
like that, the "blob" character will appear with the message on the
"Additional Message Information" display.

HTH,
Dan Bale

-----Original Message-----
From: Weatherly, Howard [mailto:hweatherly@dlsc.dla.mil]
Sent: Monday, March 06, 2000 10:55 AM
To: 'MIDRANGE-L@midrange.com'
Subject: RE: Color in messages


Thanks for the info on the codes for color to all, now I have a more
perplexing problem! when I concatenate the code to the message all I get is
a blob character then the message, the system consoles are color. Does
anyone have any idea about this? Ultimately we want to add the codes to the
message files so certain messages stand out!
TIA 
Howard 
---------- 
From:   Boris Goldenberg[SMTP:bpcsguru@yahoo.com] 
Sent:   Friday, March 03, 2000 8:14 AM 
To:     MIDRANGE-L@midrange.com 
Subject:        Re: Color in messages 
I believe hex 20 returns to normal.  After that 21, 22 23, etc give you 
different attributes like red, blue, yellow, blinking, underline etc.. 
--- "Weatherly, Howard" <hweatherly@dlsc.dla.mil> wrote: 
> I know this has been covered before, unfortunately I have lost my email so

> many times and can't find it. 
> 
> We would like to add color to messages coming out of programs etc.. Our 
> thought was to add the hex characters in the message file also we wanted
to 
> be able to send message from programs in color using any f the snd???msg 
> command in TAA or the QSNDMSG from a program. What I am lacking is the hex

> color equivalents. 
> 
> Anyone? 
> 
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.