How do I style disabled textboxes

Get help using Construct 2

Post » Fri Feb 10, 2017 7:29 am

I made a small utility for calculations, similar functionality to a spreadsheet.

Looks fine on chrome for pc and android, but on ios, the disabled textboxes are infuriatingly hard to read.

Any way to get to the :disabled element as described http://www.w3schools.com/cssref/sel_disabled.asp ?

Assuming there isn't I guess I can change the non-input fields to text objects instead as a workaround.

I do hope C3 has improved support for css (for the text object too)!

https://www.dropbox.com/s/4raer6lp4h5px ... .capx?dl=0
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Fri Feb 10, 2017 12:20 pm

oosyrag wrote:I made a small utility for calculations, similar functionality to a spreadsheet.

Looks fine on chrome for pc and android, but on ios, the disabled textboxes are infuriatingly hard to read.

Any way to get to the :disabled element as described http://www.w3schools.com/cssref/sel_disabled.asp ?

Assuming there isn't I guess I can change the non-input fields to text objects instead as a workaround.

I do hope C3 has improved support for css (for the text object too)!

https://www.dropbox.com/s/4raer6lp4h5px ... .capx?dl=0


@oosyrag

Set your textbox to enabled, then use an instant variable to manage them.

This works, tested in chrome and on ipad

You could even add, css style: "cursor" "not-allowed", to work on mouse hover.

Image

You can change the background color "gainsboro" to any css color http://www.w3schools.com/cssref/css_colors.asp
Bushy Ball\Boatman Bill\Sticky Web\Snake

Image ImageImageImage

During the gold rush it was a good time to be in the pick and shovel business
B
45
S
13
Posts: 248
Reputation: 5,249


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, duditon, Kermad, R0J0hound, yiuyiu6666 and 7 guests