| View previous topic :: View next topic |
| Author |
Message |
TimeSurfer Newbie
Joined: 01 Aug 2002 Posts: 12
|
Posted: Mon May 22, 2006 10:48 pm Post subject: Browser Element & Child Dialogs |
|
|
Im having a bit of a problem using the browser element in VDS5 in a multi dialog unit. I get error (line 22) when trying to use the browser element inside a child dialog but if i use it by itself it works fine. any suggestions? _________________ T-i-m-e-S-u-r-f-e-r |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Mon May 22, 2006 11:28 pm Post subject: |
|
|
Hard to say without an example, but are you using 'DIALOG SELECT' when accessing the child dialog?
When you have more than one dialog, you need to use 'DIALOG SELECT, 0' for the parent, and 1, 2, 3, etc for the children.
From the help file:
| Quote: |
DIALOG SELECT is needed for scripts that use more than one dialog. The DIALOG commands, and functions that operate on dialog elements such as @dlgtext, search only the currently selected dialog for the named dialog element. This command is used to ensure that the correct dialog is selected.
|
_________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
TimeSurfer Newbie
Joined: 01 Aug 2002 Posts: 12
|
Posted: Tue May 23, 2006 5:30 pm Post subject: |
|
|
| Code: | #-----------------------------------------------------------------------------#
# #
# Default script template - to change it edit <vdspath>\default.dsc #
# #
# Author: Time #
# #
# Copyright: 2006 #
# #
#-----------------------------------------------------------------------------#
Title Xchat
DIALOG CREATE,Xchat,-1,0,842,472
REM *** Modified by Dialog Designer on 5/20/2006 - 15:54 ***
DIALOG ADD,STYLE,STYLE1,Arial,10,,BLACK,WHITE
DIALOG ADD,LINE,LINE1,1,0,843,80
DIALOG ADD,BITMAP,BITMAP1,3,2,838,77,C:\banner.bmp
DIALOG ADD,LINE,LINE2,82,0,561,335
DIALOG ADD,LINE,LINE3,82,588,186,335
DIALOG ADD,LINE,LINE4,421,0,585,30
DIALOG ADD,LIST,LIST1,85,591,180,328,,SORTED
DIALOG ADD,LINE,LINE5,421,589,184,30
DIALOG ADD,LIST,LIST2,85,3,554,328
DIALOG ADD,EDIT,EDIT1,426,4,577,19,EDIT1
DIALOG ADD,BUTTON,BUTTON1,424,614,133,24,SEND
DIALOG ADD,STATUS,STATUS1,STATUS1
DIALOG ADD,PROGRESS,PROGRESS1,81,563,22,337,50,,SMOOTH,VERTICAL
DIALOG ADD,LINE,LINE6,82,776,66,202
DIALOG ADD,BUTTON,BUTTON2,86,780,58,24,Send File
DIALOG ADD,BUTTON,BUTTON3,120,780,57,24,FXP File
DIALOG ADD,BUTTON,BUTTON4,154,780,57,24,Get IP
DIALOG ADD,BUTTON,BUTTON5,189,780,57,24,Show IP
DIALOG ADD,BUTTON,BUTTON6,224,780,57,24,Board
DIALOG ADD,BITBTN,BITBTN1,291,783,48,41,C:\FFXP.bmp
DIALOG ADD,BUTTON,BUTTON7,256,780,58,24,Options
DIALOG SHOW
:Main_Evloop
wait event
%E = @event()
goto %E
:BUTTON1BUTTON
info Replace this line with code to process the BUTTON1BUTTON event
goto main_evloop
:BUTTON2BUTTON
info Replace this line with code to process the BUTTON2BUTTON event
goto main_evloop
:BUTTON3BUTTON
info Replace this line with code to process the BUTTON3BUTTON event
goto main_evloop
:BUTTON4BUTTON
info Replace this line with code to process the BUTTON4BUTTON event
goto main_evloop
:BUTTON5BUTTON
info Replace this line with code to process the BUTTON5BUTTON event
goto main_evloop
:BUTTON6BUTTON
goto child_dialog2
:BUTTON7BUTTON
goto child_dialog
:BITBTN1BUTTON
run C:\Program Files\FlashFXP\flashfxp.exe
goto main_evloop
:Close
exit
:Child_Dialog
DIALOG CREATE,X-Chat Options,-1,0,495,160
REM *** Modified by Dialog Designer on 5/20/2006 - 16:37 ***
DIALOG ADD,GROUP,CGROUP1,5,3,300,78,Server(s)
DIALOG ADD,COMBO,CCOMBO1,24,16,180,21
DIALOG ADD,BUTTON,CBUTTON1,52,73,64,22,Connect
DIALOG ADD,BUTTON,CBUTTON2,22,222,64,21,Add
DIALOG ADD,BUTTON,CBUTTON3,49,223,64,21,Remove
DIALOG ADD,GROUP,CGROUP2,88,4,299,47,Board (URL)
DIALOG ADD,EDIT,CEDIT1,108,13,232,19,,,MULTI
DIALOG ADD,BUTTON,CBUTTON4,106,251,44,21,Set
DIALOG ADD,GROUP,CGROUP3,6,309,180,129,NickName
DIALOG ADD,EDIT,CEDIT2,41,335,124,19,Main Nick
DIALOG ADD,EDIT,CEDIT3,98,336,123,19,Alt Nick
DIALOG ADD,TEXT,CTEXT1,24,359,,,Primary Nick:
DIALOG ADD,TEXT,CTEXT2,81,359,,,Alternate Nick:
DIALOG ADD,BUTTON,CBUTTON5,137,151,177,20,Close
DIALOG SHOW
:Child_evloop
wait event
parse "%E;%D",@event(D)
if @zero(%D)
beep
dialog select,1
dialog focus,CEDIT2
goto Child_evloop
else
goto Child_%E
end
:Child_CBUTTON1BUTTON
info Replace this line with code to process the BUTTON1BUTTON event
goto child_evloop
:Child_CBUTTON2BUTTON
info Replace this line with code to process the BUTTON2BUTTON event
goto child_evloop
:Child_CBUTTON3BUTTON
info Replace this line with code to process the BUTTON3BUTTON event
goto child_evloop
:Child_CBUTTON4BUTTON
info Replace this line with code to process the BUTTON4BUTTON event
goto child_evloop
:Child_CBUTTON5BUTTON
dialog select,1
%A = @dlgtext(cedit2)
if @null(%A)
warn No data entered!
goto Child_evloop
end
goto child_close
:CHILD_CLOSE
dialog close
wait event
%E = @event()
goto Main_Evloop
:CHILD_DIALOG2
DIALOG CREATE,Xchat Browser,-1,0,706,497
DIALOG ADD,BROWSER,BROWSER1,3,2,701,473,http://www.google.net/
DIALOG ADD,BUTTON,C2BUTTON1,480,4,699,16,CLOSE
DIALOG SHOW
:CHILD_EVLOOP2
wait event
parse "%E;%D",@event(D)
if @zero(%D)
beep
dialog select,1
dialog focus,CEDIT2
goto Child_evloop2
else
goto Child_%E
end
:CHILD_C2BUTTON1BUTTON
dialog select,1
%A = @dlgtext(cedit2)
if @null(%A)
warn No data entered!
goto Child_evloop2
end
goto child_close2
:CHILD_CLOSE2
dialog close
wait event
%E = @event()
goto Main_Evloop |
_________________ T-i-m-e-S-u-r-f-e-r |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Tue May 23, 2006 5:54 pm Post subject: |
|
|
Your example seems to load fine if you put 'external vdsbrw50' at the top.
Keep in mind that your main, or parent dialog, is 0, when using dialog select. _________________ -Sheep
My pockets hurt... |
|
| 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
|
|