Panel:LocalToScreen
Example: Basic Usages
Here we create a DFrame derivative and use it to display the screen coordinates of the center of the panel. For and explanation of the design structure read VGUI Creating Custom Elements
Output: ![](//files.facepunch.com/wiki/files/aaf9e/8dc93bb0caa838e.png)
![](http://files.facepunch.com/wiki/files/aaf9e/8dc93bb0caa838e.png)
Takes X and Y coordinates relative to the panel and returns their corresponding positions relative to the screen.
See also Panel:ScreenToLocal.
Here we create a DFrame derivative and use it to display the screen coordinates of the center of the panel. For and explanation of the design structure read VGUI Creating Custom Elements