trichview.com

trichview.support




Re: DBRVE


Return to index


Author

Message

Sergey Tkachenko

Posted: 11/08/2003 16:12:44


> I was also trying to figure out how to save controls in dbrve,

> every time the data is loaded again the controls are missing.


You need to register all controls that you need to load from RVF with

RegisterClasses:


RegisterClasses([TButton, TEdit]);


Do it before the first loading, for example, in the initialization section

of the main form's unit.


>

> And another question:

> I'm trying to select rows/cols by double clicking the first cell

> in a row/col. Its seems to work but also gives an AV.

>


Unfortunately, this code cannot be executed inside OnDblClick.

When the caret is in cell, RichViewEdit creates a special child editor to

editing this cell.

Your code (specifically SelectCols and SelectRows method) destroys this

editor. And VCL does not like when the component that raised the event is

destroyed inside this event.

The solution is using PostMessage. If you need an example, I can create it.





Powered by ABC Amber Outlook Express Converter