Page 1 of 1

DCTREEITEM AND DISEBLE

Posted: Tue Nov 05, 2013 2:54 pm
by digitsoft
Hi Roger
As I can put DCTREEITEM CAPTION 'Sub-SubTree 2/1' PARENT oSubTree2
disable

Re: DCTREEITEM AND DISEBLE

Posted: Tue Nov 05, 2013 6:58 pm
by rdonnay
The DCTREE system is created using XbpTreeView() and XbpTreeViewItem().

Unfortunately, this class does not support disabling of an item.

Re: DCTREEITEM AND DISEBLE

Posted: Tue Nov 05, 2013 11:06 pm
by Auge_Ohr
hi,

i have create "native" DXE_TreeView() / DXE_TreeViewItem() and try compatible Syntax to Xbase++
i need it for Unicode while Xbase++ Treeview Version does not work with Unicode ( Chinese BIG5 )

my "native" DXE Version :
a.) can use Ownerdraw Syntax like Xbase++ ( with other XbParts )
b.) can use NM_CUSTOMDRAW Notify Event for real Customdraw ( need Source )

to check what User click :
c.) hitTest(hitTestInfo) : http://msdn.microsoft.com/en-us/library ... 85%29.aspx
Determines the location of the specified point relative to the client area of a tree-view control.
i think using a new IVar can handle enable/disable and draw Icon / Text "Grey" if disable ( or don't show it ?)
if a Item is disable but have (disable) Sub-Item you can denied to expand(item,flag)
http://msdn.microsoft.com/en-us/library ... 85%29.aspx

try Demo if we can use it to modify it your Way you need.

Re: DCTREEITEM AND DISEBLE

Posted: Wed Nov 06, 2013 6:05 am
by digitsoft
rdonnay wrote:The DCTREE system is created using XbpTreeView() and XbpTreeViewItem().

I'm using DCTREEROOT

Unfortunately, this class does not support disabling of an item.