Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-04-20, 10:08 AM   #1
Zax
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 147
FauxScrollFrame in pure LUA problem

Hello,

Sorry if it has already been asked but I encounter a problem with FauxScrollFrame.
In the past, I used this kind of frame with XML without problem, but now I'm trying in pure LUA.
When I click on the arrows to scroll, I have this error:
Interface\SharedXML\SecureUIPanelTemplates.lua:329: Usage: Cmdli_frameHisto_scrollScrollBar:SetValue(value, [treatAsMouseEvent])...
The problem seems to come from offset in:
Code:
frameScroll:SetScript("OnVerticalScroll", function () 
	FauxScrollFrame_OnVerticalScroll(frameScroll, offset, 16, Cmdli.scrollerUpdate)  -- "Cmdli" is my current namespace
end)
In previous XML version, offset wasn't defined and it worked (don't know why), and now I don't know what value offset should have.

Thank you for your help.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » FauxScrollFrame in pure LUA problem


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