Is there some documentation on how to write the LUA back-end for combo boxes? I've been looking everywhere and haven't found anything.
What I'd like to know most:
- How to populate them with data so that a dropdown appears and the user can select something
- How to set which item is currently selected
- How to clear their data and/or remove individual items
Thanks. It looks like that's discussing the UIDropDownMenu stuff, which I *have* seen docs and examples on. I guess I'll have to scrap whatever that combobox object is that WoW UI Designer created and try to replace it with UIDropDownMenu, since there are no docs or examples that I can find on writing a LUA backend for WoW UI Designer comboboxes.
The ComboBox in WoW UI Designer inherits directly from UIDropDownMenu, so all the functions that affect that (defined in UIDropDownMenu.lua) work as they should. When you set the items in the Items property, the designer writes an OnLoad function that populates the ComboBox with those items. You can also write some code in the OnSelectionChanged event to be called when an item is selected.
Other than that, I suggest you look in UIDropDownMenu.lua and look at the functions to see what they do.
Nulk
__________________ Nulkris - A80 Rogue - Proudmoore
(Also Drukris, Hamkris on Proudmoore; Hulkris on Jubei'Thos & Khaz Modan)