For example based on the result of a calculation I would like to adjust the position of a textfield.
The short answer to your question is no. Layout objects are situation where they are.
The longer answer is, what exactly are you trying to achieve? There are ways to use, for example, a Web Viewer object to create more dynamic displays. But why do you want to move a text field around?
No, not with FileMaker nativ commands. It might be possible to 'display' a 'field' in a webviewer in a way that it looks like that - but with native FileMaker tools, You have to go into layout-mode an place the field
You could also have a 'virtual' layout with several 'fields' (placeholder fields) and You could display Your field at one of the (predefinded) location, in one of the placeholder fields
There are also plugings that might simulate that
You can also put several copies of a field on a layout, each with different hide object when expressions that reference the same global variable. Your script can control the value of the variable to control which copy of the field is visible.
Or use a slide control. Or tab control. Or a portal with Go to Portal Row. Or even duplicate layouts.
But whatever idea is appropriate will largely be based on what the OP has in mind, which we don't know.
Although not directly answering the question, you can use Calculations to format text, as long as the field bounds are big enough, so
TextCoulour (Field ; R; G; B)
TextStyleAdd (Field; Style)
TextFont (Field ; FontName)
Hope this help/compliments the the discussion
And the formatting of the field object can help:
Plus you can format the individual lines and even words if you enjoy complex scripting.
The trick would be to size the text field on the layout to the maximum size and the do the formatting of the text and use tabs, blank paragraphs, etc.
Interestingly enough you could use preformed text in a global and then substitute your text for the place holders. In the script below I use
Substitute(field; "[CATEGORYLOOP]" ; $$Mytext ) and so forth to replace this html code to create a bookmark page. So, using a similar idea you could store predesigned formatted text and just substitute as needed.
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
Retrieving data ...