DirectEntry problems

Im confused, the manual says this…

What appears to happen is that the text is centred at pos but the input text is left aligned to pos, so you get an overlap of the 2 texts.

Or am I doing something wrong?

If someone has a small example piece of code of the above working correctly, please can you post it.

Thanks in advance

No, you’re not doing anything wrong, this seems to be a bug in the DirectEntry code. The manual could be more clear on this, but basically you shouldn’t use the text parameter at all for DirectEntry (use initialText instead).

There may be something I’m unaware of, but if you want to have uneditable text near a DirectEntry, I would suggest just using a DirectLabel.