Jump to content

Scrollpane


Et-win

Recommended Posts

Posted

Hello all,

function window() 
    local window = guiCreateWindow(10, 10, 400, 500, "Window", false) 
    local scrollpane = guiCreateScrollPane(0, 19, 400, 481, false, window) 
    local pX = 20 
    local label = guiCreateLabel(pX, 0, 380, 481, "0123456789012345678901234567890123456789012345678901234567890123456789", false, scrollpane) 
end 
  
window() 

I can't set position X in my label, it keeps standing by 0. Even if I set pX to 1000, it still is on position 0. I wonder, how and why? (This problem is also with all other GUI things I make in the scrollpane)

PS: I can create an invisible (without text) label on the scrollpane and then create everything I want into it and set the size later on. But I still want to know why it doesn't work.

Posted
You mean 'guiSetPosition' :roll:

I just tried, and still doesn't change. The code did return 'true' though.

no , i mean this

guiSetSize 
Posted

Alright, then try to create an empty label and after that the label with text inside.

  
    local pX = 200 
    local label = guiCreateLabel(pX, 0, 380, 481, "", false, scrollpane) 
    local label = guiCreateLabel(pX, 0, 380, 481, "ABC", false, scrollpane) 
  

Posted
Yet again, nothing. Possible this is a bug? I never used this before, so I don't know or it was before too.

Hmm, it worked for me that way. No idea why.

Posted
Yet again, nothing. Possible this is a bug? I never used this before, so I don't know or it was before too.

Hmm, it worked for me that way. No idea why.

If you meant another label as that empty label as parent, then yes that works. But still I want to know why it doesn't work normally.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...