focus / textfield questions

Roby Steinmetzer's icon

Some questions concerning focus / textfield:

Say I would like to get focus on my j_box without clicking on it.
"jbox_grabfocus" works ok but in "jpatcher_api.h" the following is
written:
"Calling this method should be considered exceptional, and its use is
discouraged."
Does this mean it's not safe to use "jbox_grabfocus" and if not, is
there another way to grab focus without clicking?
On the other side, is there a way to take programmatically away the
focus from the box?

I would possibly use the textfield stuff to allow entering values in
my object.
I understand that setting the JBOX_TEXTFIELD flag in the instance
creation routine makes automagically
appear a textfield in my box when clicking on it.
Well, that's nice but what if I would have it appear only on
doubleclick?

Thanks for any answers.
More questions to come...

Roby