I'm following the below topic (custom event handler for the DocViewsArea object) to get notified when the tab menu appears for multi document view:
viewtopic.php?f=66&t=25064&p=97975&hili ... rea#p97975
If I got it right I should only set pEvent.Handled = true to stop the tab context menu from being displayed?
The below code is Delphi, pEvent.Handled IS set to true, but the menu still appears.
Code: Select all
procedure TIUIX_ObjImplEvent.OnEvent(const pSender: IUIX_Obj; const pEvent: IUIX_Event);
var
ni : UIX_NotifyInfo;
begin
pEvent.Handled := false;
if (pEvent.Code = e_Notify) then
begin
ni := UIX_NotifyInfo(Pointer(pEvent.Param1)^);
if (ni.nCode = UIX_Notify_BeforeShowPopup) then pEvent.Handled := true;
end;
end;