Thread View: borland.public.cppbuilder.internet.web
2 messages
2 total messages
Started by Markus Vornweg
Thu, 24 May 2007 20:19
how to assign a custom TPopupMenu to a TCppWebBrowser
Author: Markus Vornweg
Date: Thu, 24 May 2007 20:19
Date: Thu, 24 May 2007 20:19
10 lines
1205 bytes
1205 bytes
hello, whenever I navigate (->Navigate) to a web site my custom assigned popupmenu is replaced by the default popupmenu of the browser how can I avoid this ? re-setting the pointer to my popupmenu on "OnDownloadComplete" e.g. doesn't work thx in advance, markus vornweg
Re: how to assign a custom TPopupMenu to a TCppWebBrowser
Author: Hans Galema
Date: Fri, 25 May 2007 15:18
Date: Fri, 25 May 2007 15:18
27 lines
1589 bytes
1589 bytes
Markus Vornweg wrote:
> whenever I navigate (->Navigate) to a web site my custom assigned popupmenu
> is replaced by the default popupmenu of the browser
> how can I avoid this ?
In the constructor of your form assign a messagehandler.
Application->OnMessage = IEMessageHandler;
void __fastcall TForm1::IEMessageHandler(tagMSG &Msg, bool &Handled)
{
if( Msg.message == WM_RBUTTONDOWN )
{
PopupMenu1->Popup(200,200); // determine X,Y first
Handled = true;
}
else
Handled = false;
}
> thx in advance
This means?
Hans.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads