Change the Text Field for Required Field in Oracle Forms 6i - forms

I want to display the required text field in star symbol
if user didnt enter any values it should change the Border color to red
if user enter values it should Change the Border color to green

Unfortunately you can't simply change border color of an item. You can change background nad text color.
You can simulate border color by adding new item which is 2 pixels longer and higher than your item. Place this item under your item and change its background color. It is not as difficult as it looks.
You can change color in WHEN-VALIDATE-ITEM on your item using builtin procedure SET_ITEM_INSTANCE_PROPERTY

Related

Apply color to text with material color

Using TextMeshPro, I would need to apply color to a specific section of the text but at the same time the default text has material color applied.
string text = "Here is default text with brown text\u003Ccolor=#4186FC>Blue text here\u003C/color>"
The problem is that the final result is the multiplication of both color and then the blue part resolves as almost black. If material color is white then no problem.
Would there be a way to cancel the material on this part without making two different text objects?
You are going to want to use Rich Text. For your example you'd want to use the <color> tag. Here's how it would look
string text = "Here is default text with brown <color=#4186F>Blue text here</color>"
There's a bunch of other parts of the text you can change in the same text field using these tags, so be sure to read into the link.

Change the Label color inside the Pie chart

Change the Label color inside the Pie chart's darker region to white
Keep the label i.e present outside the pie chart in the same font color(black)
enter image description here
You can't manipulate the font colour using single filed, instead you need to manipulate individually to get conditional color formatting.
you are changing the color component so use that to manipulate the colour of font.
For example if my date is changing the colour component then use the date to change the colour of font. Follow below steps:
Create a calculated field Value1
if date=2011 //For demo purpose I assume date is used to maipulate the color of bars
then sales
end
Create a calculated field Value2
if date=2012 //For demo purpose I assume date is used to maipulate the color of bars
then sales
end
Now place calculated fields both value1 and value2 on label marks
Then go to edit text part of the edit lable their select value1 apply color white and select value2 and apply color grey

Tableau: How to changes font color based on value

Two questions:
1. I have a report that I need to change the font color if the threshold value is not met. If CompositeV < .90 the font color should be RED else BLACK.
How to I add an indicator based on #1
I have the color coded indicator, but I need to change the font color if it is less than .90 to red.
I would create a calculated field:
If CompositeV < .90
THEN "RED"
ELSE "BLACK"
END
And then add that field to the color shelf. I think I'd need more information about what type of indicator you're looking for? You could use that calculated field to further indicate which values met your condition.

Cannot change textcolor for Text in Unity

I need change Text color for UI Text to red, I tried on Indicator and script but the text color still have black color. What is wrong here ?
continueText.color = Red.color;
or
coreText.text = "<color="+textColor+">textContent"</color>";
or
Normally, Font include texture and metarial is packed. Here I make a editable copy of original font so that the metarial is unpacked. We need add metarial to Metarial box under color box choice to change color.
Thanks to #mgear for your help.

GWT textBox with different coloured alpha numerics

I want to allow the entry of different coloured alpha numeric into a text box. The person clicks on one of four buttons (blue, grey, green or red) to select the colour and that colour applies to all alpha numeric entered into the text box until a new colour is selected (e.g., KPB - the K is blue and the PB is red; -6 is green).
Thanks,
Glyn
Hi #AndreiVolgin,
This is how I implemented your suggestion. I am working on getting the display a bit "nicer".
Thanks,
Glyn
You cannot style text inside a TextBox - even "::first-letter" selector does not work on it.
You can try to create your own widget which will include a transparent TextBox widget on top of a Label widget, where on each KeyUpEvent in the TextBox you update the Label widget with the corresponding text in different colors.