Why don't you just draw a thin border around the inside of the form using the LINE method ? Chris's original POPUP.KIX script has the algorithm for doing that.