| View previous topic :: View next topic |
| Author |
Message |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Tue Apr 03, 2007 9:22 pm Post subject: Browser Element Bug or No Bug? |
|
|
Hi Guys
I working with the VDS Browser element and wondering if theirs a bug when using it with a Tab Element. eg.
# Do create etc before this:
Dialog add,TAB,TAB1,0,0,400,400,Tab1|Tab2|Tab3
dialog add,browser,browser1,10,10,380,380,http://forum.vdsworld.com
dialog add,browser,browser2,10,10,380,380,http://forum.vdsworld.com
dialog add,browser,browser3,10,10,380,380,http://forum.vdsworld.com
dialog hide,browser2
dialog hide,browser3
%%browser = 1
dialog show
:evloop
wait event
goto @event()
:tab1CLICK
%%browser = 1
dialog show,browser1
dialog hide,browser2
dialog hide,browser3
goto evloop
:tab2CLICK
%%browser = 2
dialog show,browser2
dialog hide,browser1
dialog hide,browser3
goto evloop
:tab3CLICK
%%browser = 3
dialog show,browser3
dialog hide,browser1
dialog hide,browser2
goto evloop
Ok, so if you do dialog set,browser1,http://www.vdsworld.com when using a browser element on a tab it sets all instances of the browser element to http://www.vdsworld.com
If you click links on the html code withn a browser its ok, but if you try and set an indivdual browser to another site it changes them all.
Any ideas ?
Regards
Nathan |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Wed Apr 04, 2007 4:01 am Post subject: |
|
|
Works fine here. But your code creates the browser elements overlapping the tabs (not sure if that is the cause of your problem).
I used the folowing code to test:
| Code: | #DEFINE COMMAND,BROWSER
#DEFINE FUNCTION,BROWSER
external vdsbrw50
DIALOG CREATE,New Dialog,-1,0,550,450
Dialog add,TAB,TAB1,0,0,400,400,Tab1|Tab2|Tab3
DIALOG ADD,BROWSER,browser1,22,10,360,370,http://forum.vdsworld.com
dialog add,browser,browser2,22,10,360,370,http://forum.vdsworld.com
dialog add,browser,browser3,22,10,360,370,http://forum.vdsworld.com
dialog hide,browser2
dialog hide,browser3
%%browser = 1
DIALOG ADD,BUTTON,BUTTON1,187,441,64,24,BUTTON1
DIALOG ADD,BUTTON,BUTTON2,219,441,64,24,BUTTON2
DIALOG ADD,BUTTON,BUTTON3,251,441,64,24,BUTTON3
dialog show
:evloop
wait event
goto @event()
:tab1CLICK
%%browser = 1
dialog show,browser1
dialog hide,browser2
dialog hide,browser3
goto evloop
:tab2CLICK
%%browser = 2
dialog show,browser2
dialog hide,browser1
dialog hide,browser3
goto evloop
:tab3CLICK
%%browser = 3
dialog show,browser3
dialog hide,browser1
dialog hide,browser2
goto evloop
:Close
stop
:button1button
dialog set,browser1,http://members.optusnet.com.au/toppytools
goto evloop
:button2button
dialog set,browser2,http://www.dtvforum.info
goto evloop
:button3button
dialog set,browser3,http://www.icetv.com.au
goto evloop
|
_________________ cheers
Dave |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|