Only if the text is inside a text field. If it's static text it can't be done.
I just want to make the row show the same color. The Item slot is a text field, all the fields are text fields. I just thought to add a button over the Item slot because that text field is readonly so the text in that field can't be changed.
So, are you saying that it can't be done to the other text fields in that particular row? Only the one text field? Any ideas to get this done?
No, that's not what I said. I said it can't be done for static text. If your text is in fields (one or more) then it's possible.
As the Mouse Enter script of your button you can enter something like this:
this.getField("Text1").fillColor = color.red;
this.getField("Text2").fillColor = color.red;
this.getField("Text3").fillColor = color.red;
And as the Mouse Exit script enter this:
this.getField("Text1").fillColor = color.transparent;
this.getField("Text2").fillColor = color.transparent;
this.getField("Text3").fillColor = color.transparent;
Of course, adjust the field names and colors.
Also, if you want to change the text color just replace "fillColor" with "textColor" in the code above.
Ohhhhh, I see. That's what I was looking to do. But, what can I do if the text field, at times, would be blank? Is there a way to Not change that field's fill and text color? Only when populated.
You can do it like this:
if (this.getField("Text1").valueAsString!="") this.getField("Text1").fillColor = color.red;
I gotta say you sure know your stuff. Worked perfectly. Nice work. Thanks for your help.
Thanks for helping me with my last issue. Can I ask another question regarding this issue? Is it possible to make the text go bold when I rollover (enter) the text field then go back to regular text when I exit the text field?
You can... but it's extremely distracting visually. I suggest you don't.
Nonetheless, I'd still like to try it for myself.
Sure. Just change the textFont property from the regular font to the bold version, and back.
I think I understand. Thank you. Good teacher.