About stylin' a textbox

Discussion and feedback on Construct 2

Post » Thu Feb 13, 2014 9:40 pm

I'm just curious about how to style a textbox in Construct 2:
what i've read:
Styling Textbox objects
Textbox controls can be customised in a huge number of ways via CSS (Cascading Style Sheets). Rather than adding actions to set all of the possible properties, the Textbox object exposes a Set CSS style action. Knowing CSS will of course be an advantage here, but it is simple to use for simple properties. A few examples are listed below.

Make the text red: Set "color" to "red"
Make the background yellow: Set "background-color" to "yellow"
Make the border a thick light grey: Set "border" to "3px solid #AAAAAA"
Make the font bigger: Set "font-size" to "2em"
Make a dashed red border: Set "border" to "2px dashed red"

i know css, but i don't know where to set these options - i just need the hint "where" to do this :D
B
5
Posts: 18
Reputation: 263

Post » Thu Feb 13, 2014 10:36 pm

You posted the answer yourself. Use the 'Set CSS style' action. It's the first action of the TextBox object.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,630

Post » Thu Feb 13, 2014 11:24 pm

There are 10 types of people in the World, those that understand binary and those who don't.
B
7
S
2
Posts: 93
Reputation: 797

Post » Fri Mar 21, 2014 11:30 pm

Hey, thanks for you quick help on that :-) Just checked it out right now. Cool.
B
5
Posts: 18
Reputation: 263


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 5 guests