closed
Public

Could you please make it possible to change the background color of a Recangle and a TextEditBox through behavior.

At the moment this can be done for the TextBox only.

1 answer

We have received some similar requests :-)

The difficulty is that, the rectangle will be converted to image in DHTML, since it supports rounded corner and some border options, also the gradient filling is scheduled. It is hard to support all these in DHTML except using image. Once we use image to represent the rectangle, it is hard to change its background color dynamically. So if you need a rectangle that can change background color in simulation, try using the TextBox.

As for the TextEditBox, it is using the image background for now. But it seems possible to use non-image background since it is simple. We will check the feasibility.

#1
  1. "So if you need a rectangle that can change background color in simulation, try using the TextBox."

    That is exactly what I'm doing, but it seems to be a hack to use a TextBox when I really need a rectangle. But I'll keep doing it then... :)

This question is now closed