• Getting DLabel Text Size?
    3 replies, posted
I'm trying to create a panel where it's an image and then a label making the DPanel width change based on the length of the text. Is that possible? https://pastebin.com/952NFNxi For some reason labelW does not return the exact width of the label.
First of all don't user ScreenScale. Second: you set the size of self only once and you didn't set any text for dlabel (it has a default text, but ok). maybe the text size is incorrect here because it's the same tick. Maybe you need a timer.Simple(0, here
Please use PerformLayout as you're using Dock Just use GetWide() instead of GetTextSize()
What do you think is the best way to keep a certain aspect ratio with materials that need to have a certain width:height ratio?
Sorry, you need to Log In to post a reply to this thread.