Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Two "basic" operations on GridCtrl
Re: Two "basic" operations on GridCtrl [message #21023 is a reply to message #21022] |
Sun, 26 April 2009 21:43   |
|
kbyte wrote on Sun, 26 April 2009 15:17 | One more question, please:
In what callback can we display a context menu?
In ArrayCtrl we use Grid.WhenBar = THISBACK(OnGridContextMenu)
what about GridCtrl?
Many thanks
Kim
|
The grid's callback has the same name 
You can also use standard context menu but replace action in particular places:
Callback StdInsert;
Callback StdAppend;
Callback StdRemove;
Callback StdDuplicate;
Callback StdEdit;
And you can use standard menu builders in your WhenBar method if you want add only few specific items and still have standard items:
void RemovingMenu(Bar& bar);
void MovingMenu(Bar &bar);
void SelectMenu(Bar &bar);
void ColumnsMenu(Bar &bar);
void ClipboardMenu(Bar &bar)
void PasteAsMenu(Bar &bar);
void NavigatingBar(Bar &bar);
void StdMenuBar(Bar &bar); // this one builds standard menu using methods listed above;
Hopes that will help you 
PS: All this remainds me to finish grid documentation..
|
|
|
 |
|
Two "basic" operations on GridCtrl
By: kbyte on Sun, 26 April 2009 18:27
|
 |
|
Re: Two "basic" operations on GridCtrl
By: unodgs on Sun, 26 April 2009 20:46
|
 |
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Sun, 26 April 2009 21:17
|
 |
|
Re: Two "basic" operations on GridCtrl
By: unodgs on Sun, 26 April 2009 21:43
|
 |
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Mon, 27 April 2009 00:04
|
 |
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Mon, 27 April 2009 00:35
|
 |
|
Re: Two "basic" operations on GridCtrl
By: unodgs on Mon, 27 April 2009 08:47
|
 |
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Sat, 02 May 2009 12:14
|
 |
|
Re: Two "basic" operations on GridCtrl
By: unodgs on Mon, 04 May 2009 09:39
|
 |
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Mon, 04 May 2009 12:52
|
 |
|
Re: Two "basic" operations on GridCtrl
By: unodgs on Mon, 04 May 2009 13:37
|
 |
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Mon, 04 May 2009 14:02
|
 |
|
Re: Two "basic" operations on GridCtrl
By: unodgs on Mon, 04 May 2009 15:22
|
 |
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Mon, 04 May 2009 15:52
|
 |
|
Re: Two "basic" operations on GridCtrl
|
Goto Forum:
Current Time: Fri Jul 18 03:39:08 CEST 2025
Total time taken to generate the page: 0.03297 seconds
|