How to add custom Context menu to treview in the Dialog
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-08-03
04:36 PM
- last edited on
‎2023-08-03
01:41 PM
by
Doreena Deng
‎2009-08-03
04:36 PM
Please help me to understand what I have to do to create own custom context menu on TreeView instead of "What's this?".
The problem is :
I didn't find solution in case of dialog with treeview created from GRC file. Also anoter problem ... unable to associate treeview from GRC with TreeView C++ class.
I am new in this community so plz explain me correct solution or help with working small example
Thanks
The problem is :
I didn't find solution in case of dialog with treeview created from GRC file. Also anoter problem ... unable to associate treeview from GRC with TreeView C++ class.
I am new in this community so plz explain me correct solution or help with working small example
Thanks
Labels:
- Labels:
-
Add-On (C++)
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-09-23 05:17 PM
‎2009-09-23
05:17 PM
Take a look at the Navigator_Test example, that contains a TreeView.
To use the C++ interface:
And you'll have to implement the
Best,
Akos
To use the C++ interface:
class MyDial : public TreeViewObserver, ... { protected: DG::TreeView mTree; }In the dialog's constructor
MyDial () : mTree (dialId, grcItemId), ... { mTree.SetHelpStyle (DG::TreeView::HSForItem); }
And you'll have to implement the
ItemHelpRequestedcallback.
Best,
Akos