SelectNodeByMouse

Description

Whether you can use a mouse-click to select a tree node.

Applies to

TreeView DataWindows

Syntax

PowerBuilder dot notation:

dw_control.Object.DataWindow.Tree.SelectNodeByMouse

Describe and Modify argument:

"DataWindow.Tree.SelectNodeByMouse{ = value }"

Parameter

Description

value

A boolean value that indicates whether you can select a tree node by clicking the node with the mouse. Values are:

  • Yes – You can select a tree node with a mouse-click (default).

  • No – You cannot select a tree node with a mouse-click.

Usage


In the painter

Select the Select Node By Mouse check box on the General page in the Properties view if you want to select a tree node by clicking the node with the mouse.

Examples

Example 1

if cbx_selectnodebymouse.checked then 			   ls_selectnodebymouse='yes' 
else
   ls_selectnodebymouse='no'
end if
ls_ret=dw_1.modify("datawindow.tree.selectnodebymouse='"+ls_selectnodebymouse+"'")
if len(ls_ret)>0 then Messagebox("",ls_ret)
end if

Example 2

ls_selectnodebymouse=dw_1.Describe("datawindow.tree.
selectnodebymouse")
if lower(ls_selectnodebymouse)='no' then
   cbx_selectnodebymouse.checked=false
else
   cbx_selectnodebymouse.checked=true
end if

Example 3

ls_selectnodebymouse=dw_1.object.datawindow.tree.
selectnodebymouse
if lower(ls_selectnodebymouse)='no' then
   cbx_selectnodebymouse.checked=false
else
   cbx_selectnodebymouse.checked=true
end if

Example 4

if cbx_selectnodebymouse.checked then
   ls_selectnodebymouse='yes'
else
   ls_selectnodebymouse='no'
end if
dw_1.object.datawindow.tree.selectnodebymouse=
ls_selectnodebymouse