VS:GetLBHeaderTextWidth: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
(add comment) |
||
Line 34: | Line 34: | ||
</lineList> | </lineList> | ||
</params> | </params> | ||
<remark> [[User:CBM-c-|_c_]] (2021.01.19): From [[User:Tui| Tui]], this routine crashes VW 2021 on Window, not on Mac (tested VW 2021 SP2) | |||
</remark> | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<version> | <version> | ||
Availability: from | Availability: from Vectorworks 14.0 | ||
</version> | </version> |
Latest revision as of 12:44, 19 January 2021
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Produces the width in pixels that will show the given string without truncation in a listbrowser column header. This will provide a guaranteed appropriate width for InsertLBColumn.
FUNCTION GetLBHeaderTextWidth(
className :STRING;
allowForSortIcon :BOOLEAN) : INTEGER;
def vs.GetLBHeaderTextWidth(className, allowForSortIcon): return INTEGER
Parameters
className STRING allowForSortIcon BOOLEAN
Remarks
_c_ (2021.01.19): From Tui, this routine crashes VW 2021 on Window, not on Mac (tested VW 2021 SP2)
Version
Availability: from Vectorworks 14.0