Forums > Dev

Double click to Edit Text file code example?

March 7, 2011 | 6:26 pm

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?


March 9, 2011 | 3:54 pm

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

HTH,
Tim


July 18, 2011 | 5:24 pm

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.


Viewing 3 posts - 1 through 3 (of 3 total)