Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread TEdit with readonly true - showing "Text"
Wed, May 6 2015 4:59 PMPermanent Link

Raul

Team Elevate Team Elevate

Hello,

Preview build 6 and seeing something funny with TEdit.

If you set the ReadOnly to True in the Object Inspector (design time)
then it shows "Text" in there runtime (event though the actual Text
value was set to 0).

Setting the value runtime at this point has no effect on whats displayed.

Setting value to readonly runtime works OK so is an easy workaround.

Doing this to TEdit set readonly in design time allows it to be updated
runtime :
   Edit1.ReadOnly := False;
   Edit1.Text := '123';
   Edit1.ReadOnly := True;

You have to go thru the same 3 steps for any later updates.


Raul
Thu, May 7 2015 5:59 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Raul,

<< If you set the ReadOnly to True in the Object Inspector (design time)
then it shows "Text" in there runtime (event though the actual Text value
was set to 0). >>

This is fixed - it was just an initialization order problem.  I now have the
TComponent.Initializing property checking owners also, so any given
component/control can do conditional checks on whether a component/control
is being initialized.

Tim Young
Elevate Software
www.elevatesoft.com
Image