I'm working on an aspect of an application of mine, where rectangular sections of a jit.pwindow can be selected by the user and i want a semi-transparent cursory box to appear while the selection is being made, much like when you click and drag in the Max editor itself. This is what i have so far:
I'm using another jit.pwindow as the cursor. Question 1:
-How do you affect the transparency of a matrix? I can't seem to figure it out.
The main problem here is that mousestate reports the absolute position and not the position relative to the patcher window. Question 2:
-How can i get the position of the patcher window so i can make an adjustment? Or how can i get mousestate to report relative positions?
So i suppose question 3 is:
-What do the veterans think of my concept and approach?