<?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 Dialog Manager: Set the tooltip string to a custom value? (DGSetItemTooltipString) in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Dialog-Manager-Set-the-tooltip-string-to-a-custom-value/m-p/362070#M1256</link>
    <description>&lt;P&gt;As I see, for Dialog Manager, the tooltip string for any dialog element seems to be readonly, there is no DGSetItemTooltipString. (While, interestingly, in the GDL world, it's a widely used commonplace to manipulate a GDL object's UI element's tooltip to any custom value.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Isn't there a way to set a tooltip for a custom (non GRC-defined) string?&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 12:42:32 GMT</pubDate>
    <dc:creator>Sam Karli</dc:creator>
    <dc:date>2022-11-15T12:42:32Z</dc:date>
    <item>
      <title>Dialog Manager: Set the tooltip string to a custom value? (DGSetItemTooltipString)</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Dialog-Manager-Set-the-tooltip-string-to-a-custom-value/m-p/362070#M1256</link>
      <description>&lt;P&gt;As I see, for Dialog Manager, the tooltip string for any dialog element seems to be readonly, there is no DGSetItemTooltipString. (While, interestingly, in the GDL world, it's a widely used commonplace to manipulate a GDL object's UI element's tooltip to any custom value.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Isn't there a way to set a tooltip for a custom (non GRC-defined) string?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 12:42:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Dialog-Manager-Set-the-tooltip-string-to-a-custom-value/m-p/362070#M1256</guid>
      <dc:creator>Sam Karli</dc:creator>
      <dc:date>2022-11-15T12:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog Manager: Set the tooltip string to a custom value? (DGSetItemTooltipString)</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Dialog-Manager-Set-the-tooltip-string-to-a-custom-value/m-p/362092#M1257</link>
      <description>&lt;P&gt;See&amp;nbsp;&lt;BR /&gt;ItemObserver::ItemToolTipRequested (const ItemHelpEvent&amp;amp; ev, GS::UniString* toolTipText);&lt;BR /&gt;Or&lt;/P&gt;&lt;P&gt;PanelObserver::PanelToolTipRequested (const PanelHelpEvent&amp;amp; ev, GS::UniString* toolTipText);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;class TabSettingLabelMain 
: private DG::UserItemObserver
{
private:

virtual void ItemToolTipRequested (const DG::ItemHelpEvent&amp;amp; ev, GS::UniString* toolTipText);

private:
DG::UserItem mi_image_preview;
};



TabSettingLabelMain::TabSettingLabelMain( )
: mi_image_preview( GetReference(), IMAGE_PREVIEW )
{
	mi_image_preview.Attach(*this);
}

void TabSettingLabelMain::ItemToolTipRequested(const DG::ItemHelpEvent&amp;amp; ev, GS::UniString* toolTipText)
{
	if ( ev.GetSource() == &amp;amp;mi_image_preview )
	{
		*toolTipText = str::CvtUni( m_block-&amp;gt;image_path );
	}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 16:54:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Dialog-Manager-Set-the-tooltip-string-to-a-custom-value/m-p/362092#M1257</guid>
      <dc:creator>Oleg</dc:creator>
      <dc:date>2022-11-15T16:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog Manager: Set the tooltip string to a custom value? (DGSetItemTooltipString)</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Dialog-Manager-Set-the-tooltip-string-to-a-custom-value/m-p/362133#M1258</link>
      <description>&lt;P&gt;Cool, thanks, I'll give it a check today or tomorrow.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 08:38:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Dialog-Manager-Set-the-tooltip-string-to-a-custom-value/m-p/362133#M1258</guid>
      <dc:creator>Sam Karli</dc:creator>
      <dc:date>2022-11-16T08:38:52Z</dc:date>
    </item>
  </channel>
</rss>

