The text has to be bound to the scrollbar widget you've defined. Show the whole interface code so we can ammend the code.
Originally Posted by dyzes
Tried adding a scroll interface but I've gotten an error I do not know how to fix:
As you can see the text isn't staying inside the scroll interface as it actually should (however the first line of text does stay inside the scroll interface).
here's the code I use for the text:
Spoiler for code:
Code:
for (int i = 0; i < 40; i++) {
addHoverText(31551 + i, "", "Select", atextdrawingarea, 1, 0xff9633, true, true, 250);
setBounds(31551 + i, 155, y, i, scrollInterface);
y += 23;
}
The text has to be bound to the scrollbar widget you've defined. Show the whole interface code so we can ammend the code.
Tried adding a scroll interface but I've gotten an error I do not know how to fix:
As you can see the text isn't staying inside the scroll interface as it actually should (however the first line of text does stay inside the scroll interface).
here's the code I use for the text:
Spoiler for code:
Code:
for (int i = 0; i < 40; i++) {
addHoverText(31551 + i, "", "Select", atextdrawingarea, 1, 0xff9633, true, true, 250);
setBounds(31551 + i, 155, y, i, scrollInterface);
y += 23;
}