![]() |
GetGuiTextWidth/Height, GetGuiInnerWidth/Height, Maxsize
Hi,
something like GetGuiTextWidth( size, font, style, text ); GetGuiTextHeight( size, font, style, text ); size = size in pt, like 12pt, 13pt etc -> 12, 13, etc font = font as in "Arial" style = b, i, etc text = normal text xD + GuiControl.GetGuiInnerWidth/Height() returns the "inner" width/height of a GuiCtrl so a autowrapped text in a guimltextctrl is bigger than the actual linecount + GuiControl.maxExtent = { x, y }; GuiControl.maxSize = { x, y }; a "maximum" size, means the GuiControl rezises itself when it needs to become bigger to display all of its contents, but with a maximum size of the variable there |
You can use gettextwidth(); there is no need for getGuiTextWidth, which would change nothing.
GuiMLTextCtrl should be in a GuiScrollCtrl anyway. There is no point for maxExtent and maxSize, when this can be scripted. |
Quote:
|
Quote:
|
Quote:
|
Hmmm could add a profile.gettexwidth(text) or so for using the profiles font etc. to calculate it.
|
ehr
<font size=12> would be 12 pt right? so gettextwidth uses zoom size, not pt size |
Quote:
|
Quote:
Solves your issue. |
| All times are GMT +2. The time now is 02:09 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.