This works:
Put an RTF control on a form. In Init() and Resize() of control have:
this.object.rightmargin = this.width - 25
The form runs fine. So far so good.
Now I saved the control as a class.
When I use the class on a form, and run the form, it gives this error message for Resize():
"Member OBJECT does not evaluate to an object".
The Init() does not give the error.
So I tried changing the Resize() code to:
this.rightmargin = this.width - 25
But that does not work either. The error is: Property RIGHTMARGIN is not found.
So to get it to work, I have to clear the Resize() of the class, and put the this.object.rightmargin = etc into Resize() after it is on the form.
Is there an obvious mistake here?
Cyril