Change the font color in a field using lotus script or #command - lotus-notes

Is there a way to change the font color and its background of a rich text field? The goal here is to get a type of color whenever a word is changed from a list.
For instance, I can have a table with two columns, where first column is related to a type of vehicle and the second it is related to type of combustible used. So, let's imagine that every time a vehicle uses gasoline, so its wording should be shown yellow text and the field background in black. On the other hand, if a vehicle uses electrical, its wording should be shown red and the field background in green...
I know that there is a command but I do not know how to use it for more than one value.
#Command([TextSetFontColor]; [Red])
Any help?

You can't change the font and color of the existing text in a rich text field with the Notes #formulas or #commands. There are some tricks you can do (e.g., multiple subforms containing the same field, with different backgrounds and fonts, and a computed subform formula, or maybe with multiple computed-for-display fields and hide-whens - but the text would not be editable that way) before the text is entered into the field. If you want to change the font of already-existing rich text, you'll probably need to use the Notes C or C++ APIs, the MIDAS Rich Text API from Genii software. I think the background will have to be done with computed subforms or hide-whens and computed-for-display fields (for non-editable rich text), no matter what.

Related

Inserting bold characters in docusign text data tag

I am trying to insert bold characters in a text data tag on my Docusign template.
I have tried many different ways of bolding characters (<b>, <em>, <strong>, <h1>, <h2>, <h3>, **) but none of these succeed.
I am aware that I can set the data field to be bold but I only want some of the data to be affected and splitting up my data to have bold and non-bold areas would make the template chaotic and difficult to maintain.
Any ideas?
Thank you.
DocuSign does not support partial formatting of Text tags. The formatting options available are for the the entire tag.
From Documentation
Formatting - defines the font family, size, and color, and character styling; for text fields, there is an additional formatting property to hide the text entered with asterisks, concealing the data from anyone else viewing the document.

Only making part of text bold in Powerbuilder expression

Is it possible to make only a specific part of a string bold in a computed field or text object.
Try a RichText control. It will give you more control over the look of the text.

I wish to apply a background color to ONLY the cells in a specific dataGrid column?

I asked this question on the LiveCode email list. No response, so I figure it must not be possible. I know about editing the template graphic that enables alternating row colors. That doesn't help me.
This lesson is the closest to what I have found, but it only sets the overlay color to empty cells. It also had an unwanted affect, where any data that was present in the grid no longer shows up.
http://lessons.runrev.com/s/lessons/m/datagrid/l/7327-how-do-i-override-the-default-behavior-for-rendering-data-to-a-cell
As a little experiment, since the data became invisible (note that I'm on WinXP), I tried placing an opaque graphic over the column I wish to colorize. I set the ink of the graphic to AddMax or AddOver, and it looked nice, but the text in the cells disappeared. Then I tried setting the ink to AddMin, and it still looks good, but the test shows through!!!!
So, I think this will work fine visually, but how can I pass a double-click through this graphic to the cell underneath (to allow cell editing only within this column)?
Yes, you can do this.
This suggestion comes from Trevor DeVore at http://www.bluemangolearning.com/
Create a custom column template using the property inspector. From there you can edit the behavior of the column to colorize the background color of the field for that column or just edit the field in the template group to change the color.
The background color will only show up in rows that have data, however.

Branding SharePoint Search Result

In my SharePoint site I have a list wich has a column that contains rich text in it. (i.e text with bold, color and italic style).
Now when user perform search, If the search key word match with the data in rich text column it will show that record as a search result which is perfect.
But the result in search result page show that text in plain format and my requirement is to show that result along with its formating i.e with bold and italic style.
Can any one tell me how to achieve this...!
Thanks
Sachin !
You need to implement custom search result page. Example here.

Divide the content of a text document into categories, and view a partial text

When I go over a text document ,I divide the content into different categories by highlighting sentences with different colors.
I would like to have the ability to create a set of categories , and then go over the text and mark a sentence and assign it to one of the categories.
and then have the option to see a filtered text, that contains only the sentences of one or more categories.
I would like to find out ,whether open-office or microsoft office support this, and if not, if there are plugins for that, and if not, to have some directions for how to use the api of open office for that.
Using colors would make this difficult, but in Microsoft Office (for example) you can use styles as a starting point. Create multiple styles, each of which have a meaningful name (such as "Important", "Irrelevant" or "Miscategorized") and associated each style with a color.
You can then create a macro fairly easily which will hide the style you don't want to see. Or you can temporarily change the colors or the font sizes to be invisible.

Resources