10-01-2012, 11:24 PM
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:
and then in the updating function do something like this for each of the Browser controls:
Is this how you would do it?
Thanks,
S
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:
,,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:
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