<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : CXTPCustomC&#111;ntrol with radio butt&#111;ns</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CXTPCustomC&#111;ntrol with radio butt&#111;ns]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 08:10:18 +0000</pubDate>
  <lastBuildDate>Tue, 23 Nov 2004 23:39:33 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=1441</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[CXTPCustomC&#111;ntrol with radio butt&#111;ns : if you haven&amp;#039;t CreateControlCustom...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1441&amp;PID=4118&amp;title=cxtpcustomcontrol-with-radio-buttons#4118</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1441<br /><strong>Posted:</strong> 23 November 2004 at 11:39pm<br /><br />if you haven't <strong>CreateControlCustom</strong> method then "yes".]]>
   </description>
   <pubDate>Tue, 23 Nov 2004 23:39:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1441&amp;PID=4118&amp;title=cxtpcustomcontrol-with-radio-buttons#4118</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPCustomC&#111;ntrol with radio butt&#111;ns : So I must have the latest version...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1441&amp;PID=4113&amp;title=cxtpcustomcontrol-with-radio-buttons#4113</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=842">RayJ</a><br /><strong>Subject:</strong> 1441<br /><strong>Posted:</strong> 23 November 2004 at 9:20am<br /><br /><P>So I must have the latest version for this to work?</P>]]>
   </description>
   <pubDate>Tue, 23 Nov 2004 09:20:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1441&amp;PID=4113&amp;title=cxtpcustomcontrol-with-radio-buttons#4113</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPCustomC&#111;ntrol with radio butt&#111;ns : from 9.10 you must use CXTPCon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1441&amp;PID=4106&amp;title=cxtpcustomcontrol-with-radio-buttons#4106</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1441<br /><strong>Posted:</strong> 23 November 2004 at 12:42am<br /><br /><P>from 9.10 you must use CXTPControlCustom::CreateControlCustom:</P><P>CButton&amp; wndOption = m_wndCoordinateBarRadioOptions&#091;nID-IDC_RADIO_COORD_TRACK&#093;;</P><P></P><P><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!wndOption.Create(pControlOption-&gt;GetCaption(), WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON,<BR>CRect(0, 0, 75, 20), </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>, nID))<BR>{</FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> FALSE;<BR>} </FONT></P><P>CXTPControlCustom* pControlOption = CXTPControlCustom::<strong>CreateControlCustom</strong>(&amp;m_wndOption); </P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 23 Nov 2004 00:42:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1441&amp;PID=4106&amp;title=cxtpcustomcontrol-with-radio-buttons#4106</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPCustomC&#111;ntrol with radio butt&#111;ns : I&amp;#039;m placing radio buttons...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1441&amp;PID=4103&amp;title=cxtpcustomcontrol-with-radio-buttons#4103</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=842">RayJ</a><br /><strong>Subject:</strong> 1441<br /><strong>Posted:</strong> 22 November 2004 at 3:21pm<br /><br /><P>I'm placing radio buttons in a custom conrol in the <FONT size=2>OnCreateControl method as follows:</FONT></P><FONT size=2><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> ((lpCreateControl-&gt;nID == IDC_RADIO_COORD_TRACK || lpCreateControl-&gt;nID == IDC_RADIO_COORD_LOCATE) &amp;&amp; pToolBar-&gt;GetBarID() == IDR_TOOLBAR_COORDS){</P><P>UINT nID = lpCreateControl-&gt;nID;</P><P>CXTPControlCustom* pControlOption = (CXTPControlCustom*)CXTPControlCustom::CreateObject(); </P><P>pControlOption-&gt;SetID(nID);</P><P>CButton&amp; wndOption = m_wndCoordinateBarRadioOptions&#091;nID-IDC_RADIO_COORD_TRACK&#093;;</P><P></P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!wndOption.Create(pControlOption-&gt;GetCaption(), WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON,<BR>CRect(0, 0, 75, 20), </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>, nID))<BR>{</FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> FALSE;<BR>} </FONT></P><P><FONT size=2>wndOption.SetFont(CXTPPaintManager::GetRegularFont()); <BR>wndOption.SetCheck(nID == IDC_RADIO_COORD_TRACK);<BR>pControlOption-&gt;SetControl(&amp;wndOption);<BR> pControlOption-&gt;SetVerticalPositionOption(xtpVerticalShow );<BR>pControlOption-&gt;SetFlags(xtpFlagManualUpdate);</P><P>lpCreateControl-&gt;pControl = pControlOption;<BR></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> TRUE;<BR>}</FONT></P><P><FONT size=2>My problem is that after I exist the program and restart it and undock the toolbar I get both the buttons and the radio items showing up on the toolbar&nbsp;like this:</FONT></P><P><FONT size=2><IMG src="uploads/RayJ/2004-11-22_152100_toolbar.jpg" border="0"></FONT></P><P><FONT size=2>What am I doing wrong.</FONT></P><P><FONT size=2>Thanks</FONT></P><P><FONT size=2>Ray</P></FONT>]]>
   </description>
   <pubDate>Mon, 22 Nov 2004 15:21:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1441&amp;PID=4103&amp;title=cxtpcustomcontrol-with-radio-buttons#4103</guid>
  </item> 
 </channel>
</rss>