Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SHDocVw.WebBrowser with tabs
#17
Amazing!!!! Thanks so much!!!
One additional question..
Sometime I need to update the various tabs from external functions. So what I have done is give each browser control a unique global int+ in the main dialog:

Code:
Copy      Help
,,if i = 0
,,,int+ TabBrowserControl_0 = r.hwndwb
,,if i = 1
,,,int+ TabBrowserControl_1 = r.hwndwb
,,if i = 2
,,,int+ TabBrowserControl_2 = r.hwndwb

and then in the updating function do something like this for each of the Browser controls:

Code:
Copy      Help
type TWB_TAB ~path ~name hwndwb
ARRAY(TWB_TAB)- ta
int- iTab
SHDocVw.WebBrowser wbDTWB2 wbDTWB3
int i htb
RECT rct
int hDlg=win("QM tabbed web browser" "#32770")
htb=id(3 hDlg)
str+ strId
str UrlUpdate =  F"http://SampleWebPage.aspx?person_id={strId}"
int+ TabBrowserControl_0
BringWindowToTop TabBrowserControl_0
wbDTWB2._getcontrol(TabBrowserControl_0)
wbDTWB2._setevents("wbDTWB2_DWebBrowserEvents2")
wbDTWB2.Navigate(UrlUpdate)

Is this how you would do it?

Thanks,
S


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)