Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Description

 

GET/SET color of the lines connecting the treeview nodes.

 

Syntax

 

' Get

lRGBColor = <treeViewName>.LineColor

 

' Set

<treeViewName>.LineColor = lRGBColor

 

Returns (Get only)

 

Number, RGB color of treeview lines.

 

Parameters (Set only)

 

Name

Type

Optional

Meaning

lRGBColor

Number

No

RGB color value

 

Remarks

 

Restrictions

 

See also

 

Examples

 

 ' Use somewhere outside function

 begin controlid

   %controlMyTreeview

  end controlid

 

 ' ...

 

 ' Then in some function create a named treeview control to existing hDlg dialog

  control add treeview name "myTreeview", hDlg, %controlMyTreeview"", 5, 5, 100, 100

  

 ' And manipulate it via properties and methods with ease

  myTreeview.backColor  = rgb(0,10,0)     ' Black

  myTreeview.textColor  = rgb(128,255,64) ' Green

  myTreeview.lineColor  = rgb(255,0,0)    ' Red

  

  myTreeview.itemHeight = 25              ' Inserts "a" as the first item

  

  myTreeview.indent = 50                  ' Offset from the left

   

  long a = myTreeview.insertItem("a")     ' Inserts "a" as the first item

  long b = myTreeview.insertItem("b")     ' Inserts "b" after the "a", automatically on the same level

  

  myTreeview.insertItem("c", a)           ' Inserts "c" as subitem of "a"

  myTreeview.insertItem("d", 0, a)        ' Inserts "d" after "a" on the same level as "a"

  

  myTreeview.select = b

 

  msgbox 0, "Handle of selection: " + myTreeview.selected + $CRLF +

            "Total items: "         + myTreeview.count

 

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software