Page 1 of 1
open a website in tab number 2 from the MainForm (TabbedBrowser)
Posted: Sat May 04, 2024 5:07 am
by ericktux
Hello friends, as the title says, from the "MainForm" how can I go to tab number 2 of the "pagecontrol" and open any website. I'm using the "TabbedBrowser" demo in win10x64.
Please have some example to guide me
Re: open a website in tab number 2 from the MainForm (TabbedBrowser)
Posted: Sat May 04, 2024 3:20 pm
by salvadordf
Hi,
Add a "
Navigate" procedure to TBrowserFrame that calls
WVBrowser1.Navigate.
Add a "
Navigate" procedure to TBrowserTab that calss the
TBrowserFrame.Navigate and then add this code in the main form :
Code: Select all
TBrowserTab(BrowserPageCtrl.Pages[1]).Navigate('http://www.example.com');
Re: open a website in tab number 2 from the MainForm (TabbedBrowser)
Posted: Sat May 04, 2024 3:45 pm
by ericktux
Thank you very much, I will do some tests and let you know.