I know we've already discussed this on Discord, but in case it proves helpful to others I will reply here too
Those are the two lines that are required in the main do loop
do
OryUIStartTrackingTouch()
/*
Your main game/app code here
*/
OryUIEndTrackingTouch()
Sync()
loop
The issue with the textfield in your screenshot is that this particular component relies heavily on having the listener function called in the main do loop too. This listener function is what sizes the text based on what you're doing with the textfield, and whether or not the textfield currently has text or not.
So for example:
textfield3 = OryUICreateTextfield("position:11,40;backgroundColor:236,240,241,255;strokeColor:231,76,60,255;labelText:Location")
do
OryUIStartTrackingTouch()
OryUIInsertTextFieldListener(textfield3)
OryUIEndTrackingTouch()
Sync()
loop
Quite a lot of the interactive components have their own listener function that would need to be called each frame (while it's needed on the screen).
Lastly, the text size and other parts of the textfield is all calculated based on the height of the textfield. To make it look nicer than the plain AppGameKit textfields it adds the textfield to a larger sprite, and the real editbox is 60% of the height you gave. So if you set the textfield size as 10% when creating, the background sprite will be 10% in height, and the editbox will be 6% size and placed neatly within the sprite background so that you can't really see real AppGameKit editbox, the border is removed/set the same as the background sprite so that it blends in nicely.
One thing to keep in mind is that OryUI was built around my app which uses percentage sizing and positioning. While you probably could use it with pixel based positioning and sizing, I haven't actually really tested it all, and you will need to overwrite a lot of the default sizes otherwise the components in your app will be really small. One example is the textfield which has a defualt size of 7.3. If you're using pixel based sizing that will only be 7.3 pixels high and would therefore be really small. You would have to set the size when creating the textfield as 20 or 30 depending on your needs.
OryUI - A WIP AGK2 UI Framework