Problem to insert table in TDBSRichEditView

General TRichView support forum. Please post your questions here
Post Reply
alexandreq
Posts: 184
Joined: Wed Jan 18, 2012 6:22 pm

Problem to insert table in TDBSRichEditView

Post by alexandreq »

Hello Serge

I use Delphi XE4 and my DBSRichEditView version is v5.9.5.

When I insert table in it, I have a violation but I noticed that the problem doesn't occurs in SRichViewEdit.

The code is
rvActionInsertTable1.ShowTableSizeDialog(Editor1.ActiveEditor, spbTabelas);

Could you tell me what should I do?

Thanks
Alex
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

What is the type of spbTabelas?
Are you sure it is not nil?
alexandreq
Posts: 184
Joined: Wed Jan 18, 2012 6:22 pm

Post by alexandreq »

spbTabelas is a name of my speedbutton
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Can you tell which line of RichViewActions or TRichView code generates the error?
alexandreq
Posts: 184
Joined: Wed Jan 18, 2012 6:22 pm

Post by alexandreq »

The first break happens here

procedure TRichViewRVData.DoSelect;
begin
if rvflRoot in Flags then begin
if not (csDestroying in FRichView.ComponentState) and FRichView.HandleAllocated then begin
{$IFDEF RICHVIEWDEF2010}
//CreateSelectionHandles(False);
UpdateSelectionHandles(False);
{$ENDIF}
if Assigned(TCustomRichView(FRichView).OnSelect) then
TCustomRichView(FRichView).OnSelect(TCustomRichView(FRichView));
end;
end
else
inherited DoSelect;
end;


and when I continue, it stops here

function TRVTableInplaceRVData.GetRotation: TRVDocRotation;
begin
Result := GetSourceRVData.GetRotation;
end;
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

May be the error happens in your code, in OnSelect event?
Post Reply