<?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 : [Closed] CXTPControlEdit - Numeric</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : [Closed] CXTPControlEdit - Numeric]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 10:01:35 +0000</pubDate>
  <lastBuildDate>Wed, 13 Jun 2007 05:42:41 +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=7358</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[[Closed] CXTPControlEdit - Numeric : Thanks Oleg,  Shame that Numeric...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7358&amp;PID=23647&amp;title=closed-cxtpcontroledit-numeric#23647</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1305">Simon HB9DRV</a><br /><strong>Subject:</strong> 7358<br /><strong>Posted:</strong> 13 June 2007 at 5:42am<br /><br />Thanks Oleg,<DIV>&nbsp;</DIV><DIV>Shame that Numeric isn't available - I need to protect my users from themselves <img src="https://forum.codejock.com/smileys/smiley11.gif" border="0">&nbsp;.<BR><BR>Thanks for the hard work...</DIV>]]>
   </description>
   <pubDate>Wed, 13 Jun 2007 05:42:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7358&amp;PID=23647&amp;title=closed-cxtpcontroledit-numeric#23647</guid>
  </item> 
  <item>
   <title><![CDATA[[Closed] CXTPControlEdit - Numeric : Right, sorry forgot that Edit...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7358&amp;PID=23636&amp;title=closed-cxtpcontroledit-numeric#23636</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7358<br /><strong>Posted:</strong> 13 June 2007 at 12:52am<br /><br />Right, sorry forgot that Edit control is&nbsp; actually RichEdit that doesn't support ES_NUMBER flag.<DIV>&nbsp;</DIV><DIV>For Limit text you can create custom edit:</DIV><DIV>&nbsp;</DIV><DIV>class CMyControlEdit : public CXTPControlEdit<BR>{<BR>&nbsp;DECLARE_XTP_CONTROL(CMyControlEdit)</DIV><DIV>&nbsp;void SetRect(CRect rcControl);<BR>};</DIV><DIV>IMPLEMENT_XTP_CONTROL(CMyControlEdit, CXTPControlEdit)</DIV><DIV>void CMyControlEdit::SetRect(CRect rcControl)<BR>{<BR>&nbsp;CXTPControlEdit::SetRect(rcControl);<BR>&nbsp;if (m_pEdit-&gt;GetSafeHwnd())<BR>&nbsp;{<BR>&nbsp;&nbsp;m_pEdit-&gt;SetLimitText(3);<BR>&nbsp;}</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>usage:</DIV><DIV>&nbsp;CXTPControlEdit* pControlEdit = (CXTPControlEdit*)pToolBarEdit-&gt;GetControls()-&gt;Add(new <strong>CMyControlEdit</strong>(), ID_FILE_NEW);<BR></DIV>]]>
   </description>
   <pubDate>Wed, 13 Jun 2007 00:52:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7358&amp;PID=23636&amp;title=closed-cxtpcontroledit-numeric#23636</guid>
  </item> 
  <item>
   <title><![CDATA[[Closed] CXTPControlEdit - Numeric : Also, how can I force the CXTPControlEdit...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7358&amp;PID=23608&amp;title=closed-cxtpcontroledit-numeric#23608</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1305">Simon HB9DRV</a><br /><strong>Subject:</strong> 7358<br /><strong>Posted:</strong> 12 June 2007 at 2:53am<br /><br /><FONT face="Arial, Helvetica, sans-serif" size=2>Also, how can I force the CXTPControlEdit to create the internal edit control so that I can call <EM><strong>GetEditCtrl()-&gt;SetLimitText(3);</strong></EM> ?</FONT>]]>
   </description>
   <pubDate>Tue, 12 Jun 2007 02:53:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7358&amp;PID=23608&amp;title=closed-cxtpcontroledit-numeric#23608</guid>
  </item> 
  <item>
   <title><![CDATA[[Closed] CXTPControlEdit - Numeric : Just tried this in the CommandBarControls...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7358&amp;PID=23607&amp;title=closed-cxtpcontroledit-numeric#23607</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1305">Simon HB9DRV</a><br /><strong>Subject:</strong> 7358<br /><strong>Posted:</strong> 12 June 2007 at 2:51am<br /><br />Just tried this in the CommandBarControls sample: <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV><FONT face="Courier New, Courier, mono" size=2>CXTPToolBar* pToolBarEdit = pCommandBars-&gt;Add(_T("Edit"), xtpBarTop);<BR>&nbsp;pToolBarEdit-&gt;SetBarID(IDR_MAINFRAME + 4);<BR>&nbsp;pToolBarEdit-&gt;GetControls()-&gt;Add(xtpControlLabel, 0)-&gt;SetCaption(_T("CXTPControlEdit:"));<BR>CXTPControlEdit* pControlEdit = (CXTPControlEdit*)pToolBarEdit-&gt;GetControls()-&gt;Add(xtpControlEdit, ID_FILE_NEW);<BR>pControlEdit-&gt;ShowSpinButtons(TRUE);<BR><EM><strong>pControlEdit-&gt;SetEditStyle(ES_NUMBER);</strong></EM></FONT><BR></DIV></BLOCKQUOTE><DIV>Doesn't work <img src="https://forum.codejock.com/smileys/smiley18.gif" border="0">&nbsp;I can still enter non-numeric.</DIV>]]>
   </description>
   <pubDate>Tue, 12 Jun 2007 02:51:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7358&amp;PID=23607&amp;title=closed-cxtpcontroledit-numeric#23607</guid>
  </item> 
  <item>
   <title><![CDATA[[Closed] CXTPControlEdit - Numeric : Hi, Call pControl-&amp;gt;SetEditStyle(ES_NUMBER);...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7358&amp;PID=23603&amp;title=closed-cxtpcontroledit-numeric#23603</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7358<br /><strong>Posted:</strong> 12 June 2007 at 2:35am<br /><br /><DIV>Hi,</DIV><DIV>Call pControl-&gt;SetEditStyle(ES_NUMBER);</DIV>]]>
   </description>
   <pubDate>Tue, 12 Jun 2007 02:35:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7358&amp;PID=23603&amp;title=closed-cxtpcontroledit-numeric#23603</guid>
  </item> 
  <item>
   <title><![CDATA[[Closed] CXTPControlEdit - Numeric : Hi,   How do I make a CXTPControlEdit...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7358&amp;PID=23597&amp;title=closed-cxtpcontroledit-numeric#23597</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1305">Simon HB9DRV</a><br /><strong>Subject:</strong> 7358<br /><strong>Posted:</strong> 11 June 2007 at 1:09pm<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>How do I make a CXTPControlEdit have the ES_NUMBER style? I've tried many options, got nowhere.</DIV>]]>
   </description>
   <pubDate>Mon, 11 Jun 2007 13:09:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7358&amp;PID=23597&amp;title=closed-cxtpcontroledit-numeric#23597</guid>
  </item> 
 </channel>
</rss>