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

You are probably looking for sth like a DialogBoxTemplate.

Check:
http://www.wowinterface.com/forums/s...54&postcount=1

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.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

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