WoWInterface - View Single Post - Scroller not visible until the scroll offset change?
View Single Post
07-21-21, 08:15 AM   #1
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 117
Scroller not visible until the scroll offset change?


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:
  1. fSlider.texture = fSlider:CreateTexture("$parentThumbTexture", "BACKGROUND")
  2. fSlider.texture:SetTexture("pathToMyAddon.tga")
  3. fSlider.texture:SetSize(16, 24)
  4. fSlider.texture:SetTexCoord(0.25, 0.75, 0.125, 0.875)
  5. fSlider:SetThumbTexture(fSlider.texture)

It's a lua-converted code from the following XML found on the net:
<ThumbTexture name="$parentThumbTexture" inherits="UIPanelScrollBarButton" file="Interface\Buttons\UI-ScrollBar-Knob">
	<Size x="16" y="24"/>
	<TexCoords left="0.25" right="0.75" top="0.125" bottom="0.875"/>
Thank you.
Zax - Addons List, not all maintained.
  Reply With Quote