Ticket #817 (closed defect: wontfix)

Opened 8 months ago

Last modified 8 months ago

Typecasting in control properties

Reported by: maddin Owned by: xue
Priority: low Milestone: 3.1.2
Component: Prado Framework v3 Version: 3.1
Severity: tweak Keywords:
Cc:

Description

The controls should cast the given values to parameters into the needed type, using the TPropertyValue-methods. For example what problems may occur otherwise, see http://www.pradosoft.com/forum/index.php/topic,9780.0.html For example, the TTextBox::setText-method does not cast to string. Every control should be checked and all properties should get a type cast.

Change History

Changed 8 months ago by xue

  • status changed from new to closed
  • resolution set to wontfix

We introduce typecasting for properties because controls may be configured in XML and template, where the property values are supplied as strings. Therefore, we do not use ensureString in properties.

Note: See TracTickets for help on using tickets.