Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Problem - GridCtrl::Get(int,int) with DropTree
Problem - GridCtrl::Get(int,int) with DropTree [message #26816] |
Mon, 31 May 2010 05:25 |
ktj9
Messages: 17 Registered: April 2010
|
Promising Member |
|
|
I am using DropTree as editing widget for a column in GridCtrl. However, I do not restrict the uniqueness of items in DropTree. So I better get the cursor or key from DropTree. But it seems impossible without changes.
GridCtrl activates widgets on editing, and holds Value when inactivates. GridCtrl set DropTree cursor upon editing using the Value it holds and let DropTree set cursor by finding the Value, not the key. If I use GetCtrl member function, GridCtrl returns the only DropTree it has, and the state is actually useless for particular cell.
I can see a hacking to resolve my problem, by using dynamic casting to check whether the widget is DropTree and do special things if it is. But it is certainly not a general solution.
I am wondering whether there are any other better thoughts on the issue.
Thanks!
|
|
|
Goto Forum:
Current Time: Mon May 06 04:17:49 CEST 2024
Total time taken to generate the page: 0.02904 seconds
|