skanade
asked on
RXRichEdit problem
I am using the RxRichEdit control. Everything works fine except that if the control is read only, the OLE object can still be activated or edited. What can be the problem and what callback I should change so that it can't be activated or edited or context menu produced on it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
i think open/edit can be prevented by add/change the following lines:
procedure TRxCustomRichEdit.WMRButto nUp(var Message: TWMLButtonUP);
begin
if (stObject in SelectionType) and (ReadOnly=True) then
Message.Msg:=0;
inherited;
end;
procedure TRxCustomRichEdit.WMLButto nDblClk(va r Message: TWMLButtonDblClk);
begin
if (stObject in SelectionType) and (ReadOnly=True) then
Message.Msg:=0;
inherited;
end;
but it's still possible to resize&select the object....
rene
procedure TRxCustomRichEdit.WMRButto
begin
if (stObject in SelectionType) and (ReadOnly=True) then
Message.Msg:=0;
inherited;
end;
procedure TRxCustomRichEdit.WMLButto
begin
if (stObject in SelectionType) and (ReadOnly=True) then
Message.Msg:=0;
inherited;
end;
but it's still possible to resize&select the object....
rene
ASKER
Thanks.