Mathieson
10-23-2006, 04:00 PM
Hi everyone,
I am trying to append to the items parameter of a dropdownlist. My problem is that once added the dropdownlist does not display this new item in its list.
rollout ddlTrouble_gui "Dropdownlist example"
(
dropdownlist ddl_example "List:" items:#("Facer")
button btn_press "Press Me"
on btn_press pressed do
(
append ddl_example.items "FX"
print ddl_example.items
)
)
createDialog ddlTrouble_gui
This code is an example of what I am experiencing.
When the button is pressed it appends the string "FX" to the items parameter of the dropdowlist ddl_example and then immediately prints the contents of ddl_example.items in the listener.
You can see in the listener that it has been successfully added to the dropdownlist, but when you expand the dropdownlist there is still only one item.
Is there a refresh command for rollouts or UI items that I should be using?
Thanks,
Mathieson
I am trying to append to the items parameter of a dropdownlist. My problem is that once added the dropdownlist does not display this new item in its list.
rollout ddlTrouble_gui "Dropdownlist example"
(
dropdownlist ddl_example "List:" items:#("Facer")
button btn_press "Press Me"
on btn_press pressed do
(
append ddl_example.items "FX"
print ddl_example.items
)
)
createDialog ddlTrouble_gui
This code is an example of what I am experiencing.
When the button is pressed it appends the string "FX" to the items parameter of the dropdowlist ddl_example and then immediately prints the contents of ddl_example.items in the listener.
You can see in the listener that it has been successfully added to the dropdownlist, but when you expand the dropdownlist there is still only one item.
Is there a refresh command for rollouts or UI items that I should be using?
Thanks,
Mathieson
