Page 1 of 1

Select All command

Posted: Mon Oct 22, 2012 3:23 pm
by japino
This is probably a very silly question with a simple answer... I have an Edit menu with a Select All command. That command should select all text in the field which currently holds the insertion point. I know the code for selecting text in a field is "select text of field", but how do you know which field is the current field or in other words, which field has the focus?

Re: Select All command

Posted: Mon Oct 22, 2012 3:38 pm
by dunbarx
No questions are silly. Only answers.

Look up "the focusedObject" in the dictionary.

Craig Newman

Re: Select All command

Posted: Mon Oct 22, 2012 3:59 pm
by Klaus
Hi japino,

or even better -> the selectedfield
:D

Best

Klaus

Re: Select All command

Posted: Mon Oct 22, 2012 5:13 pm
by japino
Thank you both! :)