DCTREEITEM AND DISEBLE

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

DCTREEITEM AND DISEBLE

#1 Post by digitsoft »

Hi Roger
As I can put DCTREEITEM CAPTION 'Sub-SubTree 2/1' PARENT oSubTree2
disable
Nolberto Paulino
Regards

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCTREEITEM AND DISEBLE

#2 Post by rdonnay »

The DCTREE system is created using XbpTreeView() and XbpTreeViewItem().

Unfortunately, this class does not support disabling of an item.
The eXpress train is coming - and it has more cars.

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: DCTREEITEM AND DISEBLE

#3 Post 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.
Attachments
dxe_INITREE.zip
NEED ot4xb
(764.14 KiB) Downloaded 608 times
greetings by OHR
Jimmy

User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: DCTREEITEM AND DISEBLE

#4 Post 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.
Nolberto Paulino
Regards

Post Reply