it could be that this code is running after all of your GUI elements (e.g. the object drawing the application surface runs its GUI draw event after the other GUI elements). You can try to place this instead in the "GUI Begin" event or setting this object to a higher depth / lower layer I believe.
Hope this helps. :)