Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Manipulating context menu

Post Reply
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Manipulating context menu

Post by salvadordf »

Hi,

VCL components need to be created and destroyed in the main thread but TChromium events are executed in a different thread.

You need to store the URL in a variable and send a message to the form to create the new tab/window in the main thread inside the function that handles that message.
Post Reply