Open nickvonkaenel opened 3 years ago
function Textbox:val(newval) if newval then --self:setEditorState(tostring(newval), nil, string.len(newval) + 2 - self.windowW) self:setEditorState(tostring(newval)) --this seems to work better self:redraw() else return self.retval end end
Glad to see this! I have been troubleshooting workarounds on this for weeks. Thanks!!
function Textbox:val(newval) if newval then --self:setEditorState(tostring(newval), nil, string.len(newval) + 2 - self.windowW) self:setEditorState(tostring(newval)) --this seems to work better self:redraw() else return self.retval end end