The following routines are specific to the TreeView control.
See Also: collapseItem, expandItem, expandTV, getTVIndex, getTVParent, getTVSelectedText, getTVText, hitTestTV, setTVImages, setTVText, toggleItem
id is the integer returned from addTVItem when the item was created.
See Also: addTVItem, expandItem, expandTV, getTVIndex, getTVParent, getTVSelectedText, getTVText, hitTestTV, setTVImages, setTVText, toggleItem
id is the integer returned from addTVItem when the item was created.
See Also: addTVItem, collapseItem, expandTV, getTVIndex, getTVParent, getTVSelectedText, getTVText, hitTestTV, setTVImages, setTVText, toggleItem
TVID is the id of a TreeView control
ItemID is the id of a TreeView item as returned by addTVItem
Action is either TVE_EXPAND or TVE_COLLAPSE. The default is TVE_EXPAND.
This routine expands or collapses all the items, starting with ItemId, and
continuing down the hierarchy.
Returning the opposite of Action. Thus if Action was TVE_EXPAND then
this would return TVE_COLLAPSE, and visa versa.
Example: See demo ListTreeView.exw
integer nextAction nextAction = TVE_EXPAND nextAction = expandTV( myTV, rootItem, nextAction)
See Also: addTVItem, collapseItem, expandItem, getTVIndex, getTVParent, getTVSelectedText, getTVText, hitTestTV, setTVImages, setTVText, toggleItem
integer theItem theItem = getTVIndex(theTreeview) if theItem != 0 then -- found a selected item end if
See Also: addTVItem, collapseItem, expandItem, expandTV, getTVParent, getTVSelectedText, getTVText, hitTestTV, setTVImages, setTVText, toggleItem
Note well. id is a TreeView ITEM and not the TreeView control.
See Also: addTVItem, collapseItem, expandItem, expandTV, getTVIndex, getTVSelectedText, getTVText, hitTestTV, setTVImages, setTVText, toggleItem
sequence text text = getTVSelectedText( theTreeView )
See Also: addTVItem, collapseItem, expandItem, expandTV, getTVIndex, getTVParent, getTVText, hitTestTV, setTVImages, setTVText, toggleItem
sequence text integer anItem anItem = addTVItem(theTreeView, img1, img2, "Hello", 0) . . . text = getTVText( anItem )
See Also: addTVItem, collapseItem, expandItem, expandTV, getTVIndex, getTVParent, getTVSelectedText, hitTestTV, setTVImages, setTVText, toggleItem
See Also: addTVItem, collapseItem, expandItem, expandTV, getTVIndex, getTVParent, getTVSelectedText, getTVText, setTVImages, setTVText, toggleItem
NewImage is the image used for an unselected item, and NewSelected
is the image used when the item is selected.
If either NewImage or NewSelected is -1, the respective image
is not changed.
integer anItem anItem = addTVItem(theTreeView, img1, img2, "Hello", 0) . . . setTVImages( anItem, img3, -1 )
See Also: addTVItem, collapseItem, expandItem, expandTV, getTVIndex, getTVParent, getTVSelectedText, getTVText, hitTestTV, setTVText, toggleItem
integer anItem anItem = addTVItem(theTreeView, img1, img2, "Hello", 0) . . . setTVText( anItem, "G'Day" )
See Also: addTVItem, collapseItem, expandItem, expandTV, getTVIndex, getTVParent, getTVSelectedText, getTVText, hitTestTV, setTVImages, toggleItem
id is the integer returned from addTVItem when the item was created.
If the item has its children hidden, this shows them.
If the item has its children shown, this hides them.
See Also: addTVItem, collapseItem, expandItem, expandTV, getTVIndex, getTVParent, getTVSelectedText, getTVText, hitTestTV, setTVImages, setTVText