Thread Tools Display Modes
07-06-10, 08:32 AM   #1
Tarumi
A Deviate Faerie Dragon
 
Tarumi's Avatar
AddOn Author - Click to view addons
Join Date: May 2010
Posts: 17
Width of Screen

I'm creating my own toolbar that displays information across the top of my screen (like all the data brokers do). However, I can't get it to have my bar go across the entire top of my screen. It stops about 90% of the way across the screen.

This is what I have for the main frame:

local f = CreateFrame("FRAME", "Carrie", UIParent)
f:SetWidth(GetScreenWidth() * UIParent:GetEffectiveScale())
f:SetHeight(15)

I've also tried it with the * UIParent:GetEffectiveScale() to no avail.

Thanks!
  Reply With Quote
07-06-10, 08:36 AM   #2
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
f:SetPoint('TOPLEFT')
f:SetPoint('TOPRIGHT')

is not enough?
  Reply With Quote
07-06-10, 08:49 AM   #3
Tarumi
A Deviate Faerie Dragon
 
Tarumi's Avatar
AddOn Author - Click to view addons
Join Date: May 2010
Posts: 17
Originally Posted by mrruben5 View Post
f:SetPoint('TOPLEFT')
f:SetPoint('TOPRIGHT')

is not enough?
Ah, I have f:SetPoint("TOPLEFT", 0, 0) but didn't know I might need to set a point in the TOPRIGHT. Will try this evening when I'm home.
  Reply With Quote
07-06-10, 09:42 AM   #4
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
you could even do:

f:SetPoint'TOP'
f:SetPoint'LEFT'
f:SetPoint'RIGHT'
f:SetHeight'20'
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Width of Screen


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