su37
01-15-2010, 07:15 AM
Hello,
I have got some problem with the Rollouts...
that the error message is only in the first run of script, when I run this script second time, it's work.
And I got this error message when I run this script first time:
"Type error: CreateDialog requires RolloutClass, got: undefined"
Thanks help!!
The script:
global one
try(destroyDialog one )catch()
rollout one "Rollout One" width:162 height:137
(
checkbutton ckb1 "1" pos:[4,3] width:51 height:20 checked:true
checkbutton ckb2 "2" pos:[56,3] width:51 height:20
checkbutton ckb3 "3" pos:[108,3] width:51 height:20
GroupBox grp1 "" pos:[4,16] width:155 height:115
colorPicker cp1 "ColorPicker" pos:[27,47] width:109 height:18
dropdownList ddl1 "DropDownList" pos:[24,74] width:117 height:40
on ckb1 changed state do
(
ckb1.state = true
)
on ckb2 changed state do
(
local dialogpos = getdialogpos one
createdialog two pos:dialogpos style:#(#style_toolwindow, #style_sysmenu)
destroydialog one
)
on ckb3 changed state do
(
local dialogpos = getdialogpos one
createdialog three pos:dialogpos style:#(#style_toolwindow, #style_sysmenu)
destroydialog three
)
)
rollout two "Rollout Two" width:162 height:137
(
checkbutton ckb1 "1" pos:[4,3] width:51 height:20
checkbutton ckb2 "2" pos:[56,3] width:51 height:20 checked:true
checkbutton ckb3 "3" pos:[108,3] width:51 height:20
GroupBox grp1 "" pos:[4,16] width:155 height:115
progressBar pb1 "ProgressBar" pos:[16,47] width:123 height:15
slider sld1 "Slider" pos:[15,76] width:127 height:44
on ckb1 changed state do
(
local dialogpos = getdialogpos two
createdialog one pos:dialogpos style:#(#style_toolwindow, #style_sysmenu)
destroydialog two
)
on ckb2 changed state do
(
ckb2.state = true
)
on ckb3 changed state do
(
local dialogpos = getdialogpos two
createdialog three pos:dialogpos style:#(#style_toolwindow, #style_sysmenu)
destroydialog two
)
)
rollout three "Rollout Three" width:162 height:137
(
checkbutton ckb1 "1" pos:[4,3] width:51 height:20
checkbutton ckb2 "2" pos:[56,3] width:51 height:20
checkbutton ckb3 "3" pos:[108,3] width:51 height:20 checked:true
GroupBox grp1 "" pos:[4,16] width:155 height:115
radioButtons rdo1 "RadioButtons" pos:[14,46] width:29 height:78 labels:#("1", "2", "3", "4","5","6","7","8") default:1 columns:2
on ckb1 changed state do
(
local dialogpos = getdialogpos three
createdialog one pos:dialogpos style:#(#style_toolwindow, #style_sysmenu)
destroydialog three
)
on ckb2 changed state do
(
local dialogpos = getdialogpos three
createdialog two pos:dialogpos style:#(#style_toolwindow, #style_sysmenu)
destroydialog three
)
on ckb3 changed state do
(
ckb3.state = true
)
)
createdialog one style:#(#style_toolwindow, #style_sysmenu)
I have got some problem with the Rollouts...
that the error message is only in the first run of script, when I run this script second time, it's work.
And I got this error message when I run this script first time:
"Type error: CreateDialog requires RolloutClass, got: undefined"
Thanks help!!
The script:
global one
try(destroyDialog one )catch()
rollout one "Rollout One" width:162 height:137
(
checkbutton ckb1 "1" pos:[4,3] width:51 height:20 checked:true
checkbutton ckb2 "2" pos:[56,3] width:51 height:20
checkbutton ckb3 "3" pos:[108,3] width:51 height:20
GroupBox grp1 "" pos:[4,16] width:155 height:115
colorPicker cp1 "ColorPicker" pos:[27,47] width:109 height:18
dropdownList ddl1 "DropDownList" pos:[24,74] width:117 height:40
on ckb1 changed state do
(
ckb1.state = true
)
on ckb2 changed state do
(
local dialogpos = getdialogpos one
createdialog two pos:dialogpos style:#(#style_toolwindow, #style_sysmenu)
destroydialog one
)
on ckb3 changed state do
(
local dialogpos = getdialogpos one
createdialog three pos:dialogpos style:#(#style_toolwindow, #style_sysmenu)
destroydialog three
)
)
rollout two "Rollout Two" width:162 height:137
(
checkbutton ckb1 "1" pos:[4,3] width:51 height:20
checkbutton ckb2 "2" pos:[56,3] width:51 height:20 checked:true
checkbutton ckb3 "3" pos:[108,3] width:51 height:20
GroupBox grp1 "" pos:[4,16] width:155 height:115
progressBar pb1 "ProgressBar" pos:[16,47] width:123 height:15
slider sld1 "Slider" pos:[15,76] width:127 height:44
on ckb1 changed state do
(
local dialogpos = getdialogpos two
createdialog one pos:dialogpos style:#(#style_toolwindow, #style_sysmenu)
destroydialog two
)
on ckb2 changed state do
(
ckb2.state = true
)
on ckb3 changed state do
(
local dialogpos = getdialogpos two
createdialog three pos:dialogpos style:#(#style_toolwindow, #style_sysmenu)
destroydialog two
)
)
rollout three "Rollout Three" width:162 height:137
(
checkbutton ckb1 "1" pos:[4,3] width:51 height:20
checkbutton ckb2 "2" pos:[56,3] width:51 height:20
checkbutton ckb3 "3" pos:[108,3] width:51 height:20 checked:true
GroupBox grp1 "" pos:[4,16] width:155 height:115
radioButtons rdo1 "RadioButtons" pos:[14,46] width:29 height:78 labels:#("1", "2", "3", "4","5","6","7","8") default:1 columns:2
on ckb1 changed state do
(
local dialogpos = getdialogpos three
createdialog one pos:dialogpos style:#(#style_toolwindow, #style_sysmenu)
destroydialog three
)
on ckb2 changed state do
(
local dialogpos = getdialogpos three
createdialog two pos:dialogpos style:#(#style_toolwindow, #style_sysmenu)
destroydialog three
)
on ckb3 changed state do
(
ckb3.state = true
)
)
createdialog one style:#(#style_toolwindow, #style_sysmenu)
