Help with Combolist Object
from
Stardock Forums
OK, the object of this exercise is to put a dropdown list on the desktop. When I make a selection, other configured objects can access it (the current value).
Here is my problem:
I create the Combolist box, and there is nothing in it. The list drops down and it is blank. I have a Default.Value set, and other objects can get that default value, but since there is nothing in the list I can't change my selection.
Below is my script. First thing I do is select the DesktopX Combolist control. The I create the following script:
Here is my problem:
I create the Combolist box, and there is nothing in it. The list drops down and it is blank. I have a Default.Value set, and other objects can get that default value, but since there is nothing in the list I can't change my selection.
Below is my script. First thing I do is select the DesktopX Combolist control. The I create the following script:
'Called when the script is executed
Sub Object_OnScriptEnter
Widget.AddPreference "DropDown"
Widget.Preference("DropDown").Type = "ComboList"
Widget.Preference("DropDown").Caption = "Caption"
Widget.Preference("DropDown").Description = "Description"
Widget.Preference("DropDown").DefaultValue = "Nothing in here"
Widget.Preference("DropDown").AddValue "Ping"
Widget.Preference("DropDown").AddValue "Netstat"
Widget.Preference("DropDown").AddValue "traceroute"
End Sub
Sub Object_OnScriptExit
End Sub
As I said all I get is an empty drop down box. I have checked the container properties, etc. and made sure that everything is visible, AFAIK. What am I missing here? Also, what is the difference between this and using CreateForm and defining a form the same way?
Thanks!
Brain21
