resizing a bpatcher from within

    Jan 23 2009 | 4:39 pm
    I've got an mxj object which uses LCD to draw some stuff. These two are saved together in a patch which I want to use as a bpatcher.
    What I want to do is to be able to automatically resize that bpatcher when it loads so that it is the right size for the lcd inside.
    I've been trying various combinations of getParentPatcher and getWindow and getMaxBox but i've not yet found the magic route to resizing the bpatcher.
    I do have some javascript code that does it, but I would prefer to have all of the code contained within the mxj if thats possible.
    Ideally what i want is to do this from the MaxObject :
    but I cant see a way to get the parent of a patcher object, nor is there way to modify the display rect of a patcher, you can only set the co-ords when calling the MaxPatcher constructor.