qorf / quorum-language

The primary repository for the Quorum Programming Language
BSD 3-Clause "New" or "Revised" License
15 stars 6 forks source link

TextField not displaying in Layer2D #9

Closed andreas-stefik closed 1 year ago

andreas-stefik commented 2 years ago

In the program I am writing...

With the following piece of code, the label is displayed.

Label tf tf:SetText("This is me") tf:SetPosition(40,500) tf:SetSize(500, 30) tf:SetFontColor(color:White()) controlLayer:Add(tf)

When I switch the Label to a TextField as in the following code, the TextField is not displayed.

TextField tf tf:SetText("This is me") tf:SetPosition(40,500) tf:SetSize(500, 30) tf:SetFontColor(color:White()) controlLayer:Add(tf)

And when I instead add the TextField not to controlLayer as in the following code , the Textfield is displayed.

TextField tf tf:SetText("This is me") tf:SetPosition(40,500) tf:SetSize(500, 30) tf:SetFontColor(color:White(()) Add(tf)

andreas-stefik commented 1 year ago

I'm closing this one. I'm not sure I follow what it was referring to.