quote:Originally posted by Scripting Documentation PlusWnd::Combo_SetCurSel The PlusWnd::Combo_SetCurSel function changes the selection in a ComboBoxControl. Syntax Combo_SetCurSel( [string] ControlId [number] ItemIdx );
code:var PlusWnd = MsgPlus.CreateWnd("Interfaces.xml", "WndOptions"); PlusWnd.Combo_AddItem("CmbThing", "Item 1"); PlusWnd.Combo_AddItem("CmbThing", "Item 2"); PlusWnd.Combo_SetCurSel("CmbThing", 1); //Selects index 1, which is "Item 2"
code:OnWindowidEvent_ComboSelChanged( [object] PlusWnd, [string] ControlId );