Et-win Posted August 8, 2014 Posted August 8, 2014 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.
Et-win Posted August 8, 2014 Author Posted August 8, 2014 You mean 'guiSetPosition' I just tried, and still doesn't change. The code did return 'true' though.
Max+ Posted August 8, 2014 Posted August 8, 2014 You mean 'guiSetPosition' I just tried, and still doesn't change. The code did return 'true' though. no , i mean this guiSetSize
Et-win Posted August 8, 2014 Author Posted August 8, 2014 Can you explain me why I need that code? The position of the label is the thing that is not working. Both pX and pY aren't.
Et-win Posted August 8, 2014 Author Posted August 8, 2014 Try to make it relative. Just tried it, doesn't work too.
Bonsai Posted August 8, 2014 Posted August 8, 2014 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)
Et-win Posted August 8, 2014 Author Posted August 8, 2014 Yet again, nothing. Possible this is a bug? I never used this before, so I don't know or it was before too.
Bonsai Posted August 8, 2014 Posted August 8, 2014 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.
Et-win Posted August 8, 2014 Author Posted August 8, 2014 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.
Et-win Posted August 9, 2014 Author Posted August 9, 2014 Will report this, since nobody knows the answer
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now