Page 1 of 1

Invalid property value on Form.Create

Posted: Fri Oct 09, 2009 4:16 pm
by SiriusDG
Sergey -- Hi, I am upgrading an existing application. I currently have about 3 richview edits which all behave identically, just displaying different information. I wanted to convert another plain text memo field to richtext, so I copied an existing rve, deleted the memo, dropped in the copied rve, and changed the name. Then I copied and renamed the event handlers. This is the same process I used previously, with no problems. Now, when I run the application (compile and link are no problem) I get the following error on form create --

Error reading rveScreen.OnCurParaStyleChanged: Invalid property value

I also get the same error if I try to set a handler for Current Text Style Change. Everything else works fine, and all my other rve elements have these handlers without problem. I have checked and double checked, all properties appear to be set the same as all the other rve elements, and the event handlers have been recreated multiple times, it also does not matter what code is in the handler, I tried a simple showmessage just to see if I could make anything work. No difference.

Any help is greatly appreciated. Thanx.

Sincerely,
David

Posted: Sun Oct 11, 2009 6:02 pm
by Sergey Tkachenko
Strange, never heard about errors like this.
Make sure that you do not have duplicate TRichView files (pas, dcu, bpl, dcp) in different directories.