WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Width of Screen (https://www.wowinterface.com/forums/showthread.php?t=33759)

Tarumi 07-06-10 08:32 AM

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!

ravagernl 07-06-10 08:36 AM

f:SetPoint('TOPLEFT')
f:SetPoint('TOPRIGHT')

is not enough?

Tarumi 07-06-10 08:49 AM

Quote:

Originally Posted by mrruben5 (Post 196111)
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.

ravagernl 07-06-10 09:42 AM

you could even do:

f:SetPoint'TOP'
f:SetPoint'LEFT'
f:SetPoint'RIGHT'
f:SetHeight'20'


All times are GMT -6. The time now is 06:19 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI