Thread Tools Display Modes
05/09/14, 08:34 PM   #1
CatoTheElder
Join Date: May 2014
Posts: 44
Exclamation Comboboxes????

I would greatly appreciate if someone would provide an example of a working combo box. I was unable to find the information under the Controls section of the listed API.

Events and Triggers would be most appreciated too.

Thanks in advance
  Reply With Quote
05/09/14, 10:15 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
http://www.esoui.com/forums/showpost...6&postcount=27

from this thread:

http://www.esoui.com/forums/showthre...light=combobox

/edit: note that the template this uses also creates a label for the title of the combo box. If you don't need the label, you can just use the ZO_ComboBox template directly.
  Reply With Quote
05/09/14, 11:49 PM   #3
CatoTheElder
Join Date: May 2014
Posts: 44
Thank you. It's been a while since I've worked with addons.

I'm curious where the official API documentation is. elderscrolls.com says it is somewhere on this site. After digging through a few other addons, there seems to be quite a bit of ZO specific handlers and UI pieces that are not mentioned.

Cheers!
  Reply With Quote
05/10/14, 05:18 AM   #4
CatoTheElder
Join Date: May 2014
Posts: 44
Finally getting around to using this. Much better than some other examples I've seen. I've never been great with the UI though. Something seems wrong with the anchoring.

Code:
ddGuildContainer:SetAnchor(TOPLEFT, tlw, TOPLEFT, -200, 19)
  ddGuildContainer:GetNamedChild("Dropdown"):SetWidth(250)
TOPLEFT at -200 X is uh... required, but it should be around +200 ... any idea?
  Reply With Quote
05/10/14, 05:31 AM   #5
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
If I remember rightly the direction down the screen decrements rather than incremements. I can't remember where 0,0 is but think it is top left.
  Reply With Quote
05/10/14, 06:22 AM   #6
CatoTheElder
Join Date: May 2014
Posts: 44
Huh? The point is one control is set to 20,20 and the next is set to -175,19 to get them to line up... and yes they have the same relativity, and anchor.

I've never really understood the UI part of it. I'm more of a console (command prompt) guy. Perhaps it has something to do with dimensions, and overlapping.

Anyway, after about 10 hours, it all lines up on my screen finally

Sleepy time for me, I'm going to try to forget this day.
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » Comboboxes????


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