Thread Tools Display Modes
06-16-06, 08:19 AM   #1
Hevanus
A Deviate Faerie Dragon
 
Hevanus's Avatar
Join Date: Jun 2006
Posts: 15
Combo Box

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.
  Reply With Quote
06-16-06, 11:48 AM   #2
brotherhobbes
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 313
the only info i've come across on such things is
http://www.wowwiki.com/XML_User_Interface
http://www.wowwiki.com/Widget_API
but neither expressly cover what you are looking for.

edit: there is another thread where people are talking about somewhat similar things if you wanted to see if any of it would help you -> http://www.wowinterface.com/forums/s...ad.php?p=24297
  Reply With Quote
06-17-06, 03:47 AM   #3
Hevanus
A Deviate Faerie Dragon
 
Hevanus's Avatar
Join Date: Jun 2006
Posts: 15
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.

Edit: More info on UIDropDownMenu: http://www.blizzpub.net/forums/thread.php?tid=46232
  Reply With Quote
06-18-06, 04:33 PM   #4
Nulkris
A Cobalt Mageweaver
 
Nulkris's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2005
Posts: 214
Exclamation

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)
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Combo Box


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off