The thing is I dont get any errors but when I try to get them to dock after clicking next or back each one docks differently which to me is wierd cause i am sure the codes right I attached a small video with this to see docking problem
with a title
.
I amready know about the bracket mismatch but i remove it dialog stops working so i leave it, i dont think thats the problem.
on *:START: {
/dialog -m switchbar2 switchbar2 | /dialog -m sidebar1 sidebar1 | /dialog -m sidebar4 sidebar4 | .splay start.mp3
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;SWITCH BAR 1;;;;;;;;;;;;;;;;;;;;;;;;;;;;
:/dialog -m sidebar1 sidebar1
}
dialog sidebar1 {
alias sb1 { dialog -m sidebar1 sidebar1 }
alias csb1 { dll $rebar UnDock left | dialog -x sidebar1 sidebar1 }
alias rebar { return dll/rebar.dll }
dialog sidebar1 {
title "sidebar1"
size 0 0 188 776
option pixels
icon 77, 0 0 188 800, $mircdirimages\leftbar.jpg, 0
text "", 1, 51 23 87 16, center
button "<< Back", 2, 22 531 67 25, disable
button "Next >>", 3, 92 531 67 25
text "Script Options", 4, 54 510 77 16, center
}
on *:dialog:sidebar1:sclick:*:{
if ($did == 3) { /dialog -m sidebar2 sidebar2 | /dialog -x sidebar1 sidebar1 }
}
on *:dialog:sidebar1:init:*: {
dll $mdx SetMircVersion $version
dll $mdx MarkDialog $dname
dll dll\mdx.dll SetBorderStyle 1 staticedge 14 50 Georgia Bold
dll $mdx SetMircVersion $version
dll $mdx MarkDialog $dname
dll dll\mdx.dll SetColor $dname 1 text $rgb(%list1colour,%list2colour,%list3colour)
dll $mdx SetFont $dname 1 40 Georgia Bold
mdx SetFont 1 +a 12 100 Verdana
dll $rebar Dock $dialog($dname).hwnd > left | /splay zip.wav
did -a sidebar1 1 $time(h:nn:ss tt)
colorize
.timerNOW 0 1 timer.now
}
;Aliases
alias mdx_fullpath { return $+(",$mircdir\dll/mdx.dll,") }
alias mdxinit { dll $mdx_fullpath SetMircVersion $version | dll $mdx_fullpath MarkDialog $dname }
alias -l timer.now {
if ($dialog(sidebar1)) { did -ra sidebar1 1 $time(h:nn:ss tt) }
else .timerNOW OFF
}
alias SideBarRFH {
did -a sidebar1 1 $time(h:nn:ss tt)
.timerNOW 0 1 timer.now
}
alias colorize {
var %x 1
:lp
dll $mdx SetDialog $dname bgcolor $rgb(0,0,0)
dll $mdx SetColor $dname %x background $rgb(0,0,0)
dll $mdx SetColor $dname %x text $rgb(255,255,255)
dll $mdx SetColor $dname %x textbg $rgb(0,0,0)
inc %x
if (%x == 100) { goto nd }
else { goto lp }
:nd
}
;--------------------------------------------------------------------------------------------------------------
:/dialog -m sidebar2 sidebar2
}
dialog sidebar2 {
alias sb2 { dialog -m sidebar2 sidebar2 }
alias csb2 { dll $rebar UnDock left | dialog -x sidebar2 sidebar2 }
alias rebar { return dll/rebar.dll }
dialog sidebar2 {
title "sidebar2"
size 0 0 188 776
option pixels
icon 77, 0 0 188 800, $mircdirimages\leftbar2.jpg, 0
button "<< Back", 2, 22 531 67 25
button "Next >>", 3, 92 531 67 25
text "Script Options", 4, 54 510 77 16, center
}
on *:dialog:sidebar2:sclick:*:{
if ($did == 2) { /dialog -m sidebar1 sidebar1 | /dialog -x sidebar2 sidebar2 }
if ($did == 3) { /dialog -m sidebar3 sidebar3 | /dialog -m sidebarx sidebarx }
}
on *:dialog:sidebar2:init:*: {
dll $mdx SetMircVersion $version
dll $mdx MarkDialog $dname
dll dll\mdx.dll SetBorderStyle 1 staticedge 14 50 Georgia Bold
dll $mdx SetMircVersion $version
dll $mdx MarkDialog $dname
dll dll\mdx.dll SetColor $dname 1 text $rgb(%list1colour,%list2colour,%list3colour)
dll $mdx SetFont $dname 1 40 Georgia Bold
mdx SetFont 1 +a 12 100 Verdana
dll $rebar Dock $dialog($dname).hwnd > left | /splay zip.wav
colorize
}
;--------------------------------------------------------------------------------------------------------------
:/dialog -m sidebar3 sidebar3
}
dialog sidebar3 {
alias sb3 { dialog -m sidebar3 sidebar3 }
alias csb3 { dll $rebar UnDock left | dialog -x sidebar2 sidebar2 }
alias rebar { return dll/rebar.dll }
dialog sidebar3 {
title "sidebar3"
size 0 0 188 776
option pixels
icon 77, 0 0 188 800, $mircdirimages\leftbar2.jpg, 0
button "<< Back", 2, 22 531 67 25
button "Next >>", 3, 92 531 67 25, disable
text "Script Options", 4, 54 510 77 16, center
}
on *:dialog:sidebar3:sclick:*:{
if ($did == 2) { /dialog -x sidebar3 sidebar3 | /dialog -m sidebar2 sidebar2 }
}
on *:dialog:sidebar3:init:*: {
dll $mdx SetMircVersion $version
dll $mdx MarkDialog $dname
dll dll\mdx.dll SetBorderStyle 1 staticedge 14 50 Georgia Bold
dll $mdx SetMircVersion $version
dll $mdx MarkDialog $dname
dll dll\mdx.dll SetColor $dname 1 text $rgb(%list1colour,%list2colour,%list3colour)
dll $mdx SetFont $dname 1 40 Georgia Bold
mdx SetFont 1 +a 12 100 Verdana
dll $rebar Dock $dialog($dname).hwnd > left | /splay zip.wav
colorize
}