View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0006291||New Feature Requests||[All Projects] General||public||2011-07-29 12:40||2018-09-22 18:59|
|Summary||0006291: Getting GUI label's text height.|
It would be great to be able to get GUI label's text height. Something similar to getting font height, but also taking into account newlines and wordwrapping, so label could be exactly as long as it is needed to be.
Current workaround is to keep wordwrap off and multiply font height with newlines' count, but in case of wordwrap it won't work.
Some function like guiLabelGetTextHeight(gui-label) perhaps?
|Tags||No tags attached.|
i asked about this on the forum and got negative replies about this feature. I simply made own wrap function and with it i can get exact height and width of autimatically wrapped text
well I made something like that too.. like splitting into lines, then splitting words and calculating when doesn't it fit anymore and inserted newlines there, but it's kind of reinventing the wheel.