Et-win Posted August 8, 2014 Share 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. Link to comment
Max+ Posted August 8, 2014 Share Posted August 8, 2014 did you tryed this ? guiSetSize Link to comment
Et-win Posted August 8, 2014 Author Share Posted August 8, 2014 You mean 'guiSetPosition' I just tried, and still doesn't change. The code did return 'true' though. Link to comment
Max+ Posted August 8, 2014 Share 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 Link to comment
Et-win Posted August 8, 2014 Author Share 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. Link to comment
Et-win Posted August 8, 2014 Author Share Posted August 8, 2014 Try to make it relative. Just tried it, doesn't work too. Link to comment
Bonsai Posted August 8, 2014 Share 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) Link to comment
Et-win Posted August 8, 2014 Author Share 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. Link to comment
Bonsai Posted August 8, 2014 Share 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. Link to comment
Et-win Posted August 8, 2014 Author Share 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. Link to comment
Et-win Posted August 9, 2014 Author Share Posted August 9, 2014 Will report this, since nobody knows the answer Link to comment
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