G
Guest
hi
i would like to handle the expansion of a tree node differently based on what the user did. for some nodes, although they have children, double-click should _not_ open the node but instead do something else (e.g.: open a window). for these nodes, the user should only be able to open the node by using the (+) sign. for other nodes (+) and dblclick shoule be the same
this is essentially the same behaviour that visual studio has for nodes with .resx files as children: a double click will not open the node; to open it and see the resx, you need to use (+)
now, i'm aware of BeforeExpand() and i know how to cancel the expand event here. however, there is no information as to how the expansion was invoked. thus, it seems, its not possible to handle this situation with the treeview. or is there
any pointers how to archive what i'd like to archive
WM_TH
thomas woelfer
i would like to handle the expansion of a tree node differently based on what the user did. for some nodes, although they have children, double-click should _not_ open the node but instead do something else (e.g.: open a window). for these nodes, the user should only be able to open the node by using the (+) sign. for other nodes (+) and dblclick shoule be the same
this is essentially the same behaviour that visual studio has for nodes with .resx files as children: a double click will not open the node; to open it and see the resx, you need to use (+)
now, i'm aware of BeforeExpand() and i know how to cancel the expand event here. however, there is no information as to how the expansion was invoked. thus, it seems, its not possible to handle this situation with the treeview. or is there
any pointers how to archive what i'd like to archive
WM_TH
thomas woelfer