jpn5
01-06-2009, 10:00 PM
Hi Guys, This is probably a really stupid question but I've looked all over and can find a solution...
I have a couple of list boxes on my UI and each of them have a checkbox - which should be used to enable / disable the listbox. For some reason they have no effect.
I've tried fiddling with a few variations on the following but haven't had any joy.
on chkbx1 changed state do
(
if state == 1 then
(
LstBox1.enabled = true
LstBox2.enabled = false
)
else
(
LstBox2.enabled = true
)
)
on chkbx2 changed state do
(
if state == 1 then
(
LstBox2.enabled = true
LstBox1.enabled = false
)
else
(
LstBox2.enabled = true
)
)
Any help would be greatly appreciated.
JPN5
I have a couple of list boxes on my UI and each of them have a checkbox - which should be used to enable / disable the listbox. For some reason they have no effect.
I've tried fiddling with a few variations on the following but haven't had any joy.
on chkbx1 changed state do
(
if state == 1 then
(
LstBox1.enabled = true
LstBox2.enabled = false
)
else
(
LstBox2.enabled = true
)
)
on chkbx2 changed state do
(
if state == 1 then
(
LstBox2.enabled = true
LstBox1.enabled = false
)
else
(
LstBox2.enabled = true
)
)
Any help would be greatly appreciated.
JPN5
