trichview.support
changing size in response to onChange |
Author |
Message |
Daniel Zimmerman |
Posted: 07/10/2004 3:29:00 In my application, i need to periodically change the size of the RVEditor. I'm trying to get the effect like text boxes in Powerpoint, which grow automatically when the user enters text that is bigger than their boundaries. This works well when there are no tables, but as soon as there are tables involved, i start getting access violations. This is the code in the onChange of the RVEdit inherited; tsEditor.beginUpdate; if tsEditor.DocumentHeight > tsEditor.Height then autoGrow; tsEditor.EndUpdate; autoGrow is a method i wrote which calculates the new height, and changes the height of the form who is the parent of the RVEdit. My guess is that when i'm changing the size, i may be triggering somethign that destroys the top-level editor in the table, and then other parts of the code are expecting it to still be there. Is there a way to do what i need to do that won't trigger any problems? Daniel |
Powered by ABC Amber Outlook Express Converter