<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to add  custom Context menu to treview  in the Dialo in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-Context-menu-to-treview-in-the-Dialog/m-p/166097#M6739</link>
    <description>Take a look at the Navigator_Test example, that contains a TreeView.&lt;BR /&gt;
&lt;BR /&gt;
To use the C++ interface:&lt;BR /&gt;

&lt;PRE&gt;class MyDial : public TreeViewObserver, ... {
protected:
DG::TreeView mTree;

}
&lt;/PRE&gt;

In the dialog's constructor&lt;BR /&gt;

&lt;PRE&gt;MyDial ()
: mTree (dialId, grcItemId), ...
{
    mTree.SetHelpStyle (DG::TreeView::HSForItem);
}
&lt;/PRE&gt;

&lt;BR /&gt;
And you'll have to implement the &lt;PRE&gt;ItemHelpRequested&lt;/PRE&gt; callback.&lt;BR /&gt;
&lt;BR /&gt;
Best,&lt;BR /&gt;
&lt;BR /&gt;
Akos</description>
    <pubDate>Wed, 23 Sep 2009 15:17:04 GMT</pubDate>
    <dc:creator>Akos Somorjai</dc:creator>
    <dc:date>2009-09-23T15:17:04Z</dc:date>
    <item>
      <title>How to add  custom Context menu to treview  in the Dialog</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-Context-menu-to-treview-in-the-Dialog/m-p/166096#M6738</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Please help me to understand what I have to do to create own custom context menu on TreeView instead of "What's this?".&lt;BR /&gt;&lt;BR /&gt;The problem is : &lt;BR /&gt;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.&lt;BR /&gt;I am new in this community so plz explain me correct solution or help with working small example &lt;BR /&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Aug 2023 11:41:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-Context-menu-to-treview-in-the-Dialog/m-p/166096#M6738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-03T11:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to add  custom Context menu to treview  in the Dialo</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-Context-menu-to-treview-in-the-Dialog/m-p/166097#M6739</link>
      <description>Take a look at the Navigator_Test example, that contains a TreeView.&lt;BR /&gt;
&lt;BR /&gt;
To use the C++ interface:&lt;BR /&gt;

&lt;PRE&gt;class MyDial : public TreeViewObserver, ... {
protected:
DG::TreeView mTree;

}
&lt;/PRE&gt;

In the dialog's constructor&lt;BR /&gt;

&lt;PRE&gt;MyDial ()
: mTree (dialId, grcItemId), ...
{
    mTree.SetHelpStyle (DG::TreeView::HSForItem);
}
&lt;/PRE&gt;

&lt;BR /&gt;
And you'll have to implement the &lt;PRE&gt;ItemHelpRequested&lt;/PRE&gt; callback.&lt;BR /&gt;
&lt;BR /&gt;
Best,&lt;BR /&gt;
&lt;BR /&gt;
Akos</description>
      <pubDate>Wed, 23 Sep 2009 15:17:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-Context-menu-to-treview-in-the-Dialog/m-p/166097#M6739</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2009-09-23T15:17:04Z</dc:date>
    </item>
  </channel>
</rss>

