cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to add custom Context menu to treview in the Dialog

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
1 Reply 1
Akos Somorjai
Graphisoft
Graphisoft
Take a look at the Navigator_Test example, that contains a TreeView.

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
ItemHelpRequested
callback.

Best,

Akos

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!