I am now showing application hints which include popupmenu as follows:
in formcreate:
Application.OnHint := @ShowHint;
procedure TmainForm.ShowHint(Sender: TObject);
var hintstr:string;
begin
try
hintstr:= GetLongHint(Tapplication(sender).Hint);
if hintstr<>'' then Showmessage(hintstr);
except
on e: Exception do
ShowMessage(e.ClassName);
end;
end;
Unfortunately, its throwing an access violation, which I havent been able to sus so far.