Problem: ScrollBar
1 Attachment(s)
Hi!
After I finally managed to get a standard-scrollbar working on my frame (based on this this snippet), I've encountered a (in my opinion) strange issue. I can add a row of buttons on the content frame and then scroll through them, but when i try the same with several frames, they aren't scrollable (my guess: they aren't placed on the scrollchild, what they should be...). This works fine: Code:
local content = CreateFrame("Frame", "ORC_content", scrollframe) Code:
local content = CreateFrame("Frame", "ORC_content", scrollframe) I'm sure you can help me and I'd really appreciate every hint. Yours, odjur84 PS: I've added the whole source code, just to be sure. |
I would say it's about the SetPoint:
newFrame:SetPoint("TOPLEFT", "ORC_FrameAdminLoot", "TOPLEFT", 20, ORCA_lastposition); The second parameter should be the parent object - not a string. Plus it has to be the content Frame (don't know what ORC_FrameAdminLoot is ... is it even anchored to the content frame?). newFrame:SetPoint("TOPLEFT", content, "TOPLEFT", 20, ORCA_lastposition); |
Thank you very much, Duugu!
I thought, a "relative to"-frame could also be the underlying master-frame. But obviously not. ;) Cheers! |
Quote:
|
Thanks again, Duugu. I've tested it and you're right!
|
All times are GMT -6. The time now is 03:00 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI