View Single Post
04/04/14, 11:34 AM   #4
ingeniousclown
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 122
Originally Posted by Sharp View Post
Thanks for the input I really appreciate it! I am really looking for some insight on the SetAnchor function, as I am not sure how to position it. Also, I see a lot of people using a CHAIN function to create controls, is that needed? What is the best way to position control relevant to the previous control?
The CHAIN is not necessary, it just makes a person's life easier when defining controls. Instead of using CHAIN, you can just do control:SetBlah(lol) on every line.

As for how to position using SetAnchor, that really depends on what you need. Sometimes you need to position from the CENTER, sometimes you really need BOTTOM or BOTTOMRIGHT. Do whatever fits your need at the time. It's hard to visualize at first but you'll understand it better with practice When in doubt, TOPRIGHT and TOPRIGHT (for self and relative) are good defaults since they are the most natural to the way the screen units are indexed.
  Reply With Quote