Spec: how to select contents of TextModel on focus
As the user tabs through the text fields of my Spec dialog, I'd like for the text to be selected in the currently active field. How do I do this? I played with #readSelectionBlock:, which seems to be sent during initialization but not navigation, and #whenReadSelectionIsChanged:, the purpose of which I can't figure out. Thanks, Sean -- View this message in context: http://forum.world.st/Spec-how-to-select-contents-of-TextModel-on-focus-tp46... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Can't you force the use of readSelectionBlock during the navigation ? Ben On Jan 21, 2013, at 6:29 PM, Sean P. DeNigris wrote:
As the user tabs through the text fields of my Spec dialog, I'd like for the text to be selected in the currently active field. How do I do this? I played with #readSelectionBlock:, which seems to be sent during initialization but not navigation, and #whenReadSelectionIsChanged:, the purpose of which I can't figure out.
Thanks, Sean
-- View this message in context: http://forum.world.st/Spec-how-to-select-contents-of-TextModel-on-focus-tp46... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Benjamin Van Ryseghem-2 wrote
Can't you force the use of readSelectionBlock during the navigation ?
I thought about this for a while and realized I don't know what that means :) Would you give a little more info? e.g. where to look... -- View this message in context: http://forum.world.st/Spec-how-to-select-contents-of-TextModel-on-focus-tp46... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
participants (2)
-
Benjamin -
Sean P. DeNigris