Copy link to clipboard
Copied
Any ideas how to make the text box display a background? The font changes but the background doesn't.
if (displayedItem === _this.display.text) {
textBox.text = `${displayedItem} ${fuelOrder}`;
textBox.font = "23px Arial" // THIS WORKS
textBox.background=true;
textBox.backgroundColor = "#00ff00";
Thanks!
Hi.
I don't think CreateJS - or even canvas - implements a background property or method for text fields.
You'll have to do it manually by creating in author or run time a rectangle in the background that has the same size and position of the target text field instance.
Regards,
JC
Copy link to clipboard
Copied
Hi.
I don't think CreateJS - or even canvas - implements a background property or method for text fields.
You'll have to do it manually by creating in author or run time a rectangle in the background that has the same size and position of the target text field instance.
Regards,
JC
Copy link to clipboard
Copied
Thanks JC
I ended up just hiding the thing behind which I was wanting to obscure.
Kind regards
Matt
Copy link to clipboard
Copied
You're welcome!
And thanks for letting us know.