WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Addon scroll bar problem (https://www.wowinterface.com/forums/showthread.php?t=36449)

Drakonic 11-01-10 02:28 AM

Addon scroll bar problem
 
For a good two days now I've been running through everything and trying to make my addon work properly. I've made a scroll bar and up and down arrows for a text box list for like teleport locations, how ever when you click the up or down buttons or try to drag the scroll bar, it does not move the list. Can someone possibly look into this? Request what you need and I will post it back asap.

eberkain 11-01-10 07:56 AM

no idea if its the proper way, but for the scrollbars I have in the addon im working on I used the OnValueChanged script to perform my updates.

So, I have one function that goes through and assigns the proper values to all the frames on the screen, the values it assigns are based on the slider:GetValue() method, so if that changes then the assigned values will also change.

At work, so not sure of the exact syntax, but I do something like this...

function UpdateDisplay()
--update the visible frames here
end

slider:HookScript("OnValueChanged", UpdateDisplay)


All times are GMT -6. The time now is 02:42 PM.

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