Scroller not visible until the scroll offset change?
Hello,
I'm designing a scroller for a scroll frame and I have a problem with the scroller itself: it is not shown until I activate the scroll, by click on the arrow-down btn or by mouse-wheel. The path to my .tga image is valid because the scroller is well visible once it has been "manually activated". This is my code: Lua Code:
It's a lua-converted code from the following XML found on the net: Code:
<ThumbTexture name="$parentThumbTexture" inherits="UIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-Knob"> |
Lua Code:
|
Thanks Fizzlemizz for your code, much better than mine.
However, I still have the same problem and I have to force the slider's thumb to be displayed with: Lua Code:
So, it works but I suppose I missed something somewhere (I prefer not to post the entire messy code as it's part of an addon made for testing purpose, trying to understand scroll frame and also trying to make my own scroll design). |
Presumably you would be doing that as part of initialising the list with it's data.
|
Quote:
|
All times are GMT -6. The time now is 11:59 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI