Initialising edit box text with selected file, like so
var srcTab = clickData.func.sourcetab;
if (srcTab.stats.selitems > 0) {
dialog.Control("edit1").value = srcTab.selected(0).name_stem;
}
Is there a way of automatically selecting edit box text when it is first displayed, if not is there a way of placing the cursor at the end of the edit box text.
Does the edit control already have focus when you change the text? That might stop it being selected (and would mean setting focus to the edit control was a no-op).
(This kinda of thing would be much easier if you post a small, self-contained example that we could try and modify ourselves.)