Determine the panel width or any elements actual width

Would any of this help?