<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PopupMenu</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/12/10/popupmenu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/12/10/popupmenu/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 18:06:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Guy Carnegie</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/10/popupmenu/#comment-16826</link>
		<dc:creator>Guy Carnegie</dc:creator>
		<pubDate>Fri, 14 Oct 2005 16:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=929#comment-16826</guid>
		<description>&lt;p&gt;Okay, answered my own question. I had to type :&lt;/p&gt;
&lt;p&gt;     oControl.Init Xtree.Object&lt;/p&gt;
&lt;p&gt;where I WAS typing...&lt;/p&gt;
&lt;p&gt;     oControl.Init Xtree&lt;/p&gt;
&lt;p&gt;Everything is working well now and I&#039;m well chuffed.&lt;/p&gt;
&lt;p&gt;thanks&lt;br&gt;
   Guy&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Okay, answered my own question. I had to type :</p>
<p>     oControl.Init Xtree.Object</p>
<p>where I WAS typing&#8230;</p>
<p>     oControl.Init Xtree</p>
<p>Everything is working well now and I&#8217;m well chuffed.</p>
<p>thanks<br />
   Guy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guy Carnegie</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/10/popupmenu/#comment-16824</link>
		<dc:creator>Guy Carnegie</dc:creator>
		<pubDate>Fri, 14 Oct 2005 15:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=929#comment-16824</guid>
		<description>&lt;p&gt;I incorporates the code into my access 2000 vba project, but can&#039;t get it to work with my treeview. It kicks up an error when trying to set m_treeview = control where my treeview is actually a &quot;treectrl&quot; and not a &quot;treeview&quot; so the types are different!&lt;/p&gt;
&lt;p&gt;I&#039;m trying to find a genuine &quot;treeview&quot; to put into my project, in place of the treectrl from the mscomctllib v6 and have referenced the v5 treeview, but can&#039;t seem to insert the activex into my project.&lt;/p&gt;
&lt;p&gt;I exported and imported everything including the form into access and made several minor changes (including removing the textbox references) so that my objects were referenced instead.&lt;/p&gt;
&lt;p&gt;I can&#039;t even seem to get the genuine treeview from the imported form onto my access form (which appears to be a different kind of form altogether)&lt;/p&gt;
&lt;p&gt;any ideas would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;It appears that although access application itself (outside vba) recognises the treectrl as a &quot;treectrl&quot;, VBA tells me in the watch window that the TYPE of the object is &quot;custom&quot; - which it isn&#039;t! I got it stright from the &quot;insert activeX object&quot; menu on the form designer.&lt;/p&gt;
&lt;p&gt;I&#039;m stuck!&lt;/p&gt;
&lt;p&gt;thanks&lt;br&gt;
Guy Carnegie&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I incorporates the code into my access 2000 vba project, but can&#8217;t get it to work with my treeview. It kicks up an error when trying to set m_treeview = control where my treeview is actually a &#8220;treectrl&#8221; and not a &#8220;treeview&#8221; so the types are different!</p>
<p>I&#8217;m trying to find a genuine &#8220;treeview&#8221; to put into my project, in place of the treectrl from the mscomctllib v6 and have referenced the v5 treeview, but can&#8217;t seem to insert the activex into my project.</p>
<p>I exported and imported everything including the form into access and made several minor changes (including removing the textbox references) so that my objects were referenced instead.</p>
<p>I can&#8217;t even seem to get the genuine treeview from the imported form onto my access form (which appears to be a different kind of form altogether)</p>
<p>any ideas would be greatly appreciated.</p>
<p>It appears that although access application itself (outside vba) recognises the treectrl as a &#8220;treectrl&#8221;, VBA tells me in the watch window that the TYPE of the object is &#8220;custom&#8221; &#8211; which it isn&#8217;t! I got it stright from the &#8220;insert activeX object&#8221; menu on the form designer.</p>
<p>I&#8217;m stuck!</p>
<p>thanks<br />
Guy Carnegie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Collins</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/10/popupmenu/#comment-2933</link>
		<dc:creator>Jamie Collins</dc:creator>
		<pubDate>Mon, 13 Dec 2004 12:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=929#comment-2933</guid>
		<description>&lt;p&gt;&quot;My solution would need it for a ListView control.&quot;&lt;/p&gt;
&lt;p&gt;Rob, You are correct. And you prompted me to recall (too late) I had used TypeName where TypeOf would be better. You&#039;d also need a WithEvents variable to hold the reference and provide the event handler. So:&lt;/p&gt;
&lt;p&gt;Private WithEvents m_ListView As MSComctlLib.ListView&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;If TypeOf Control Is MSComctlLib.TreeView Then&lt;br&gt;
  Set m_TreeView = Control&lt;br&gt;
ElseIf TypeOf Control Is MSComctlLib.ListView Then&lt;br&gt;
  Set m_ListView = Control&lt;br&gt;
Else&lt;br&gt;
  Exit Function&lt;br&gt;
End If&lt;/p&gt;
&lt;p&gt;Jamie.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>&#8220;My solution would need it for a ListView control.&#8221;</p>
<p>Rob, You are correct. And you prompted me to recall (too late) I had used TypeName where TypeOf would be better. You&#8217;d also need a WithEvents variable to hold the reference and provide the event handler. So:</p>
<p>Private WithEvents m_ListView As MSComctlLib.ListView</p>
<p>&#8230;</p>
<p>If TypeOf Control Is MSComctlLib.TreeView Then<br />
  Set m_TreeView = Control<br />
ElseIf TypeOf Control Is MSComctlLib.ListView Then<br />
  Set m_ListView = Control<br />
Else<br />
  Exit Function<br />
End If</p>
<p>Jamie.</p>
<p></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob van Gelder</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/10/popupmenu/#comment-2906</link>
		<dc:creator>Rob van Gelder</dc:creator>
		<pubDate>Fri, 10 Dec 2004 23:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=929#comment-2906</guid>
		<description>&lt;p&gt;Jamie&lt;/p&gt;
&lt;p&gt;Nice work!&lt;br&gt;
And great idea Juan Pablo González!&lt;/p&gt;
&lt;p&gt;I have an immediate use for it.&lt;/p&gt;
&lt;p&gt;Having just glossed the code, I see code for handling TreeView.&lt;br&gt;
My solution would need it for a ListView control.&lt;br&gt;
I presume adding another elseif in CPopupControlMSComctlLib.Init is necessary.&lt;/p&gt;
&lt;p&gt;Again - good work. Very useful.&lt;/p&gt;
&lt;p&gt;Cheers&lt;br&gt;
Rob&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Jamie</p>
<p>Nice work!<br />
And great idea Juan Pablo González!</p>
<p>I have an immediate use for it.</p>
<p>Having just glossed the code, I see code for handling TreeView.<br />
My solution would need it for a ListView control.<br />
I presume adding another elseif in CPopupControlMSComctlLib.Init is necessary.</p>
<p>Again &#8211; good work. Very useful.</p>
<p>Cheers<br />
Rob</p>
]]></content:encoded>
	</item>
</channel>
</rss>

