<?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 Focus Problems with ArcObjects Cross-Platform C++ SDK in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/focus-problems-with-arcobjects-cross-platform-c/m-p/498853#M13390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="text-decoration:underline;"&gt;Target Environment&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Development OS: 64-bit Windows 7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deployed OS: 32-bit Windows XP&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Toolkit: Qt 4.2.3&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the next three videos, please note the issue. At start-up, a user can hover across the toolbar and it brings up the tool tip for each command/tool. When a user presses a command/tool the main application window loses focus. If the user hovers across the toolbar now, there are no tooltips- obviously. If the user subsequently clicks commands, then they appear raised&amp;nbsp; and tooltips still do not work while the main application window does not have focus. Tools function properly other than no tooltips. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;If the video is too small, then please run it full-screen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Qt4 Toolkit&lt;/STRONG&gt;&lt;BR /&gt;&lt;OBJECT height="380" width="640"&gt;&lt;PARAM name="movie" value="http://www.youtube.com/v/VjzotLGo2UM" /&gt;&lt;/OBJECT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;WxWidgets Toolkit&lt;/STRONG&gt;&lt;BR /&gt;&lt;OBJECT height="380" width="640"&gt;&lt;PARAM name="movie" value="http://www.youtube.com/v/3zO-jo2CfpY" /&gt;&lt;/OBJECT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;GTK Toolkit&lt;/STRONG&gt;&lt;BR /&gt;&lt;OBJECT height="380" width="640"&gt;&lt;PARAM name="movie" value="http://www.youtube.com/v/3xyWjVNp6rk" /&gt;&lt;/OBJECT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please note the Visual C++ SDK behaves normally. The main window does not lose focus. The delay when I click Fixed Zoom-In is from labeling.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OBJECT height="380" width="640"&gt;&lt;PARAM name="movie" value="http://www.youtube.com/v/dg4UjE77R-I" /&gt;&lt;/OBJECT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is, for the Qt example, how do I get the focus to return to the main window after clicking an item on the toolbar? I suppose I could use the IToolbarControlEvents interface to capture one of the mouse actions, but how would I return the focus to the main window? Would I pass the QMainWindow into the IToolbarControlEvents implementation constructor or access it through the QAxCtl through the IToolbarControl interface(how?) and then accessing the QMainWindow through QAxCtl through accessing parent widgets (provided they had been set) until I reached the top level?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The examples used here are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\ArcGIS\DeveloperKit10.0\Samples\ArcObjectsCPP\DynamicDisplay\Qt_Cpp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\ArcGIS\DeveloperKit10.0\Samples\ArcObjectsCPP\MapTocToolbar\Wx_Cpp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\ArcGIS\DeveloperKit10.0\Samples\ArcObjectsCPP\MapTocToolbar\GTK_Cpp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\ArcGIS\DeveloperKit10.0\Samples\ArcObjectsVCPP\geodesy_map_control_sample\Visual_CPP&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Mar 2011 21:49:35 GMT</pubDate>
    <dc:creator>ChanceYohman</dc:creator>
    <dc:date>2011-03-04T21:49:35Z</dc:date>
    <item>
      <title>Focus Problems with ArcObjects Cross-Platform C++ SDK</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/focus-problems-with-arcobjects-cross-platform-c/m-p/498853#M13390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="text-decoration:underline;"&gt;Target Environment&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Development OS: 64-bit Windows 7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deployed OS: 32-bit Windows XP&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Toolkit: Qt 4.2.3&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the next three videos, please note the issue. At start-up, a user can hover across the toolbar and it brings up the tool tip for each command/tool. When a user presses a command/tool the main application window loses focus. If the user hovers across the toolbar now, there are no tooltips- obviously. If the user subsequently clicks commands, then they appear raised&amp;nbsp; and tooltips still do not work while the main application window does not have focus. Tools function properly other than no tooltips. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;If the video is too small, then please run it full-screen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Qt4 Toolkit&lt;/STRONG&gt;&lt;BR /&gt;&lt;OBJECT height="380" width="640"&gt;&lt;PARAM name="movie" value="http://www.youtube.com/v/VjzotLGo2UM" /&gt;&lt;/OBJECT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;WxWidgets Toolkit&lt;/STRONG&gt;&lt;BR /&gt;&lt;OBJECT height="380" width="640"&gt;&lt;PARAM name="movie" value="http://www.youtube.com/v/3zO-jo2CfpY" /&gt;&lt;/OBJECT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;GTK Toolkit&lt;/STRONG&gt;&lt;BR /&gt;&lt;OBJECT height="380" width="640"&gt;&lt;PARAM name="movie" value="http://www.youtube.com/v/3xyWjVNp6rk" /&gt;&lt;/OBJECT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please note the Visual C++ SDK behaves normally. The main window does not lose focus. The delay when I click Fixed Zoom-In is from labeling.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OBJECT height="380" width="640"&gt;&lt;PARAM name="movie" value="http://www.youtube.com/v/dg4UjE77R-I" /&gt;&lt;/OBJECT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is, for the Qt example, how do I get the focus to return to the main window after clicking an item on the toolbar? I suppose I could use the IToolbarControlEvents interface to capture one of the mouse actions, but how would I return the focus to the main window? Would I pass the QMainWindow into the IToolbarControlEvents implementation constructor or access it through the QAxCtl through the IToolbarControl interface(how?) and then accessing the QMainWindow through QAxCtl through accessing parent widgets (provided they had been set) until I reached the top level?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The examples used here are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\ArcGIS\DeveloperKit10.0\Samples\ArcObjectsCPP\DynamicDisplay\Qt_Cpp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\ArcGIS\DeveloperKit10.0\Samples\ArcObjectsCPP\MapTocToolbar\Wx_Cpp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\ArcGIS\DeveloperKit10.0\Samples\ArcObjectsCPP\MapTocToolbar\GTK_Cpp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\ArcGIS\DeveloperKit10.0\Samples\ArcObjectsVCPP\geodesy_map_control_sample\Visual_CPP&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 21:49:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/focus-problems-with-arcobjects-cross-platform-c/m-p/498853#M13390</guid>
      <dc:creator>ChanceYohman</dc:creator>
      <dc:date>2011-03-04T21:49:35Z</dc:date>
    </item>
  </channel>
</rss>

