Quantcast WoWInterface - View Single Post - Help on ScrollFrame with LUA
View Single Post
02-15-13, 02:57 AM   #27
A Pyroguard Emberseer
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,685
Next to Slider, Button, ScrollFrame templates there are "Frame" template.

You are probably looking for sth like a DialogBoxTemplate.


You will find a pretty deep list of Frame templates. Try them out. I would start with "UIPanelDialogTemplate". You can actually combine templates.

Thus you can do this:

Lua Code:
  1. local sf = CreateFrame("ScrollFrame", "MYSCROLLFRAMENAME", UIParent, "UIPanelScrollFrameTemplate, UIPanelDialogTemplate")

That works for all templates that do not counterfit each other. One template my do artwork, the other may do functional stuff etc.
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote