View Single Post
  #8 (permalink)  
Old 07-22-2008, 10:20 PM
specci48's Avatar
specci48 specci48 is offline
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 672
Default

Hi Cableguy,

to get the delete going on the device you have to change the following statements (case "9" of the context handling) in your codefile.txt to:
Code:
	Case "9"
		If Msgbox(Txt(27),Txt(28),cMsgboxYesNo,cMsgBoxQuestion) = cYes Then
		    IF Node.IsRoot Then
			TreeView.RemoveNode(Node.Value)
		    Else
			Parent.Value = Node.Parent
			Parent.RemoveNode(Node.Value)
		    End If
		Else
			Return
		End If
As I already mentioned, the treeview works very different on the desktop and on the device.
On the desktop "TreeView.RemoveNode" works for all nodes belonging to the whole tree. On the device you have to handle the differences between "TreeView.RemoveNode" and "Node.RemoveNode" manually. Only root nodes can be removed with "TreeView.RemoveNode". For all other (sub)nodes you have to use "Node.RemoveNode".


specci48
Reply With Quote