VS:SetLBColumnOwnerDrawnType: Difference between revisions
m (1 revision) |
m (Transfer Orso to _c_) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 44: | Line 44: | ||
ownerDrawnType | ownerDrawnType | ||
INTEGER | INTEGER | ||
None - 0 | None - 0, Solid rect - 1, Dual solid rect - 2, Pattern rect - 3, Dual pattern rect - 4, Gradient or image - 5, Blank - 6, Text - 7, Dashed line - 8 | ||
Solid rect - 1 | |||
Dual solid rect - 2 | |||
Pattern rect - 3 | |||
Dual pattern rect - 4 | |||
Gradient or image - 5 | |||
Blank - 6 | |||
Text - 7 | |||
Dashed line - 8 | |||
</line> | </line> | ||
</lineList> | </lineList> | ||
Line 59: | Line 51: | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<remark> | <remark> | ||
Pattern and pattern rect are not quite supported under VW 12.5 and 12.5.1. Setting a LB cell to this type will load | ([[User:CBM-c-|_c_]], 2015.12.19): | ||
Pattern and pattern rects are supported starting with VW 15 (2010). Use [[VS:SetLBItemPatternIndex]] to choose the Pattern. | |||
([[User:CBM-c-|_c_]], 2007.05.16): | |||
Pattern and pattern rect are not quite supported under VW 12.5 and 12.5.1. Setting a LB cell to this type will only load the artifact of a pattern. The image loaded is by default random and stretches on Mac (not on PC). A pattern shouldn't stretch according to the width of the LB cell, should be bound to the screen resolution. | |||
There is to my knowledge no way to control the pattern loaded. | There is to my knowledge no way to control the pattern loaded. | ||
Line 67: | Line 63: | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<version> | <version> | ||
Availability: from | Availability: from VectorWorks 12.0 | ||
</version> | </version> |
Latest revision as of 05:15, 30 December 2020
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Sets the list browser column's owner drawn type.
FUNCTION SetLBColumnOwnerDrawnType(
dialogID :LONGINT;
componentID :LONGINT;
itemIndex :INTEGER;
subItemIndex :INTEGER;
ownerDrawnType :INTEGER) : BOOLEAN;
def vs.SetLBColumnOwnerDrawnType(dialogID, componentID, itemIndex, subItemIndex, ownerDrawnType): return BOOLEAN
Parameters
dialogID LONGINT id of the dialog that contains the list browser componentID LONGINT id of the list browser control itemIndex INTEGER the row index subItemIndex INTEGER the column index ownerDrawnType INTEGER None - 0, Solid rect - 1, Dual solid rect - 2, Pattern rect - 3, Dual pattern rect - 4, Gradient or image - 5, Blank - 6, Text - 7, Dashed line - 8
Remarks
(_c_, 2015.12.19):
Pattern and pattern rects are supported starting with VW 15 (2010). Use VS:SetLBItemPatternIndex to choose the Pattern.
(_c_, 2007.05.16): Pattern and pattern rect are not quite supported under VW 12.5 and 12.5.1. Setting a LB cell to this type will only load the artifact of a pattern. The image loaded is by default random and stretches on Mac (not on PC). A pattern shouldn't stretch according to the width of the LB cell, should be bound to the screen resolution.
There is to my knowledge no way to control the pattern loaded. A corresponding function for setting or retriving the pattern index is still missing in the currently published VS version. In the SDK there are SDK:GS_SetListBrowserItemPatternIndex and SDK:GS_GetListBrowserItemPatternIndex.
Version
Availability: from VectorWorks 12.0