I’m displaying a text field where the contents is highlighted.
How can I set it unselected and the cursor at the end of the contents ?
[quote=137387:@Johann JFK]I’m displaying a text field where the contents is highlighted.
How can I set it unselected and the cursor at the end of the contents ?[/quote]
See Selstart and SelLength at http://documentation.xojo.com/index.php/TextField
it’s not working that way, once I click into the text field the selection is gone,
I use it like that:
txtCompanyName.text = aCompanyName
txtCompanyName.SelStart = 0
txtCompanyName.SelLength = 0
me.showmodal()
it is part of a dialog window
txtCompanyName.text = aCompanyName
txtCompanyName.SelStart = len(txtcomptxtcompanyname.text)
txtCompanyName.SelLength = 0
reading about theses functions will help increase your understanding of how they work