Focusing an Object


    Oct 20 2008 | 9:59 am
    How can I focus an object by sending it a message? Specifically I want to focus a textedit object on load for a dialog box but it would also be useful to be able to do this for numbers.
    It's a pain to have to click every time in the textedit for a dialog entry.

    • Oct 20 2008 | 10:17 am
    • Oct 20 2008 | 10:25 am
      Is this normal behaviour? When a patcher is closed should textedit automatically output the text?
      Here's a basic custom dialog that always outputs the text when closed whether I tell textedit to output or not.
    • Oct 21 2008 | 8:16 am
      fairesigneaumachiniste schrieb: > Is this normal behaviour? When a patcher is closed should textedit > automatically output the text?
      Depends on the perspective. I think it is counter intuitive, and the reason is, as soon the focus is lost (also by clicking elsewhere) it will output the text. Closing the window is defocusing...
      I guess the solution would be an additional attribute "defocus enters text" which could then be unchecked...
      > Here's a basic custom dialog that always outputs the text when closed > whether I tell textedit to output or not.
      Here's my workaround, which should still work if that (wrong) behavior is corrected... (I prefer a gate, as the zl reg solution would not allow to enter the text after typing, which should close the window as well...)
      -- Stefan Tiedje------------x------- --_____-----------|-------------- --(_|_ ----|-----|-----()------- -- _|_)----|-----()-------------- ----------()--------www.ccmix.com
    • Oct 21 2008 | 9:10 am
      Quote: stefantiedje wrote on Tue, 21 October 2008 10:16 ---------------------------------------------------- > fairesigneaumachiniste schrieb: > > Is this normal behaviour? When a patcher is closed should textedit > > automatically output the text? > > Depends on the perspective. I think it is counter intuitive, and the > reason is, as soon the focus is lost (also by clicking elsewhere) it > will output the text. Closing the window is defocusing... ----------------------------------------------------
      Thanks for explaining that. I understand now. An option for not outputing when focus is lost would be useful. For the time being though, your solution works well. Thanks.