Focusing an Object
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.
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.
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
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.