Skip to content

Latest commit

 

History

History
61 lines (48 loc) · 1.9 KB

File metadata and controls

61 lines (48 loc) · 1.9 KB

SetLBItemPatternIndex

Description

Sets the specified list browser item's pattern index.

FUNCTION SetLBItemPatternIndex(
				dialogID     : LONGINT;
				componentID  : LONGINT;
				itemIndex    : INTEGER;
				subItemIndex : INTEGER;
				patIndex     : INTEGER): BOOLEAN;
def vs.SetLBItemPatternIndex(dialogID, componentID, itemIndex, subItemIndex, patIndex):
    return BOOLEAN

Parameters

Name Type Description
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
patIndex INTEGER The pattern index of this item. Value from [1..71] see [[VS:Function Reference Appendix#Fill Patterns]]

Examples

==== VectorScript ====

SetupDialogC: BEGIN
  tmp := InsertLBColumn( dialog, kListBrowser, 0, 'one', 60 );
  tmp := InsertLBColumn( dialog, kListBrowser, 1, 'two', 60 );
  tmp := InsertLBItem( dialog, kListBrowser, 0, 'pat' );

  boo := SetLBControlType( dialog, kListBrowser, 1, 5 );
  boo := SetLBItemDisplayType( dialog, kListBrowser, 1, 1 );

  boo := SetLBColumnOwnerDrawnType( dialog, kListBrowser, 0, 1, 3 );
  boo := SetLBItemPatternIndex( dialog, kListBrowser, 0, 1, 9 );
  boo := SetLBItemFillForeColor( dialog, kListBrowser, 0, 1,   0, 0, 0 );
  boo := SetLBItemFillBackColor( dialog, kListBrowser, 0, 1,   255, 255, 255 );
END;

==== Python ====

See Also

GetLBItemPatternIndex | SetLBItemFillForeColor | SetLBItemFillBackColor

SetLBControlType | SetLBItemDisplayType | SetLBColumnOwnerDrawnType | SetLBItemPatternIndex

Version

Availability: from Vectorworks 2010

Category

  • Dialogs - Modern - Browser