Drawing Using BGL (Knowing My Container Extents)

Hi All,

I have been poking around with bgl and I still can not figure out how to get the correct size of the panel I want to draw in.

I have been able to draw in the Properties panel, but without being able to take into account the open and closed states of the various rollouts and the position of the scroll bar it seems difficult to draw something on the surface that seems to stick to the panel when it scrolls.

Does anyone have any links to such features?

AFAICT you are directly drawing to the gl buffer so you have to calculate all the scrolling & etc yourself – which may not even be possible from python currently.

are there any updates to this Atom ? I too would really like to draw custom controls onto panels