EditBox Load text issue
Hi all
I have a strange bug where I try to load text into an edit box on load. I can load the text but it does not show until I click on the edit box and right arrow until the text shows. Here is my lua file. Here is my toc file. updateTextFucntion - line 139 run updateTextFucntion(scaleNumber) in playerLogin event - line 250 scaleTextEditBox - line 309 Can anyone tell me what I am doing wrong? |
Did you try making the EditBox wider? It looks like the text is having problems fitting all 3 digits until you move the cursor back to the beginning. It's possible it could be some anomaly in an attempt to word wrap or truncate.
You also may want to try tweaking :SetTextInsets(). |
Have you considered adjusting the width of the EditBox or experimenting with :SetTextInsets() to resolve the issue of text not displaying properly until you interact with it?
|
Hi SDPhantom and AmadiDooke
Yes, I have already tried expanding the edit box and adjusting the insets, all without success. When I try a test of just the edit box using the following code it works perfectly; Lua Code:
This code uses the same edit box code and the same function code, other than the UIParent. |
In your PasteBin code,
After: Lua Code:
Lua Code:
|
Hi Fizzlemizz
That fixed it, thank you so much. |
Have you considered using the solution provided by Fizzlemizz, which involves adding the line "ScaleSlapDownButtonEditBox:SetCursorPosition(0)" after the line "ScaleSlapDownButtonEditBox:SetText(scaleNumber)" in your PasteBin code to address the issue of text not displaying properly until interaction?
|
All times are GMT -6. The time now is 03:43 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI