![]() |
getlines() quirk
I have a guiMLTextCtrl and when the player invokes a few certain actions, a function will change the text, afterward I call a function that uses getlines() with MLText. Now .text returns the appropriate text always but only if I remove a line of text from the MLText will it return the proper line array. How come getlines is not returning my MLText all the time?
EDIT : adding a sleep() delay to the beginning final functions seems to correct it. |
Are you just modifying it with obj.text @= "etc." are you calling one of the GUI methods (obj.addtext(text, reflow_bool)) to do so?
|
obj.addtext(); and when I have to take a a line I do obj.text = ""; I add back the lines except the ones I need to remove.
|
| All times are GMT +2. The time now is 05:49 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.