View previous topic :: View next topic |
Author |
Message |
GreyCloud
Joined: 13 Nov 2008 Posts: 19
|
Posted: Sat Feb 06, 2010 2:42 pm Post subject: Which Column when the custom header menu is launched |
|
|
Hi,
Quick question, I've added a custom header menu but would like to be able to customise its entries depending on which column is clicked. Which event should i handle & how can i work out which column is being clicked?
Thanks
David
P>S> this is now the third large project i've used Virtual Tree on - its always worked wonderfully - great work |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sun Feb 07, 2010 10:42 pm Post subject: |
|
|
You can handle the Opening event for your custom header menu and then check the the ContextMenuColumn property of VirtualTree - this gives the column that the menu was opened for.
Alternatively, if you are deriving from VirtualTree, you can override the ShowHeaderContext(Column) method and (after calling the base method) update your custom menu there.
Thanks for the positive feedback. _________________ Infralution Support |
|
Back to top |
|
|
GreyCloud
Joined: 13 Nov 2008 Posts: 19
|
Posted: Mon Feb 08, 2010 2:59 pm Post subject: |
|
|
Many thanks thats the property i was after |
|
Back to top |
|
|
|