Forums > Javascript

Bring Object Forward / To Front

June 26, 2013 | 1:52 pm

After creating an element in javascript how can I bring it forward. In this specific case I’m wondering about a pwindow.

var pwindow = patcher.newdefault(200, 200, 'jit.pwindow');
//pwindow.bringToFront();


June 26, 2013 | 5:47 pm

var pwindow = patcher.newdefault(200, 200, 'jit.pwindow');
patcher.bringtofront(pwindow);
patcher.sendtoback(pwindow);

but the most important is: where to find this information?

Check Max Help > Vignettes > JS > The Patcher object

Attachments:
  1. patcherInJS

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