Double click to Edit Text file code example?

cap10subtext's icon

I'm sure I'd seen this somewhere but now I can't find it. Is there an SDK example of how to double click to to edit an existing text file from within Max the same way that coll and text do it?

Timothy Place's icon

There is a "doubleclick" message to which you can bind.

HTH,
Tim

cap10subtext's icon

Sorry, had to change my approach because of the object init routine causing problems. Editing the file after init didn't seem like the way to go.

Incase anyone stumbles across this thread in the future:

Example jit.textedit has

void max_jit_textfile_dblclick(t_max_jit_textfile *x);

Thanks again Tim. You've been very helpful.