DirectEntry: Setting Selection

Is there a way to set arbitrarily the range of text in a DirectEntry field that is selected? I have a field that I would like to automatically select all of its own text when the user clicks on it, so they can either replace the text by typing or deselect it to leave it alone.

No, sorry, the DirectEntry doesn’t actually have a concept of selected text. It just has a current cursor position. You could implement this yourself by binding a function to the TYPE event, though, that would clear the text when the user types the first character.