VS:SetLBColumnWidth

From Vectorworks Developer
Jump to: navigation, search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

Description

Sets the width of the specified range of columns of the specified list browser control.
FUNCTION SetLBColumnWidth(
dialogID  :LONGINT;
componentID  :LONGINT;
fromColumn  :INTEGER;
toColumn  :INTEGER;
width  :INTEGER) : BOOLEAN;
def vs.SetLBColumnWidth(dialogID, componentID, fromColumn, toColumn, width):
    return BOOLEAN

Parameters

dialogID LONGINT id of the dialog that contains the list browser
componentID LONGINT id of the list browser control
fromColumn INTEGER first column to be changed
toColumn INTEGER last column to be changed
width INTEGER the width of the column in pixels

Remarks

On the Mac a List Browser column width of '0' will crash the application or make the dialog window un-exitable (force-quit needed). The same occurs if a user is resetting manually the column width to zero.

This known, the column width zero must be prevented programmatically for safety (VW 12.5-13).

Version

Availability: from VectorWorks11.0
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox