Change Color of Text in MSG (OpenInsight Specific)
At 23 OCT 1998 03:09:57AM Paul Rule wrote:
Does anyone know of a way of changing the color of parts of text used in the MSG routine. What I want to do is have multiple lines of text @TM delimetered and have one of those lines highlighted. The end result being a message displayed on the screen that shows which steps of a process is being executed. ie: STEP 1, STEP2, STEP3. etc. I did a similar thing in AREV using the PRINT statement to change colors. Failing that, how would you selectively highlight lines in an edit box, and changed them programatically. Any ideas would be appreciated?
At 23 OCT 1998 03:24AM Oystein Reigem wrote:
Paul,
Edit box
In the edit box properties you can tick off RTF. The edit box will become read-only, but you can set it programmatically with Rich Text Format encoded text. You can use text from an RTF file or encode the text yourself (you need the latter).
There are many RTF features that do not work, but colours certainly do (foreground colour, not background colour).
The RTF edit box has been a big disappointment for me because it doesn't display 8-bit characters, and we here in Norway have 8-bit characters in our alphabet.
Edit table
Can you use an edit table? You can set the colour of edit table cells.
- Oystein -
At 23 OCT 1998 08:46AM Don Bakke wrote:
Paul,
You can use the SELECTION property to programmatically highlight portions of an editbox, but the highlight won't extend beyond the last character of a particular line so this won't look nearly as good as I think you want it to.
Oystein's suggestion of using an edittable, which can be modified at design time to resemble an editbox, is a better option since it is much easier to make rows highlighted (SELPOS property) and these rows will extend all the way across the control.
My preference would be to create several static text controls and either programmatically set the FONT property to a bold font to the relevant step and/or place a graphic, like an arrow, to the right of the relevant step and move it using the SIZE property.
Many ways to get this job done as you can see.
dbakke@srpcs.com