<?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 : CXTPSyntaxEditCtrl in a Dialog</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Syntax Edit : CXTPSyntaxEditCtrl in a Dialog]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 23 May 2026 03:57:00 +0000</pubDate>
  <lastBuildDate>Tue, 27 Jan 2009 13:23:52 +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=7350</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[CXTPSyntaxEditCtrl in a Dialog : Multiple (2 for example) sample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7350&amp;PID=44938&amp;title=cxtpsyntaxeditctrl-in-a-dialog#44938</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 7350<br /><strong>Posted:</strong> 27 January 2009 at 1:23pm<br /><br />Multiple (2 for example) sample based on <FONT size=2>CSyntaxEditOnDialogDlg</FONT>:<DIV>add in header file:</DIV><FONT size=2><P>CXTPSyntaxEditCtrl m_ctrlSynEdit;</P><P>CXTPSyntaxEditCtrl m_ctrlSynEdit2;</P><DIV></DIV><P>in cpp file</P><DIV><FONT color=#0000ff size=2><FONT size=2><P>BOOL CSyntaxEditOnDialogDlg::OnInitDialog()</P><P>{</P><P>CDialog::OnInitDialog();</P><P>CRect rcEdit;</P><P>GetClientRect(&amp;rcEdit);</P><P>rcEdit.DeflateRect(3, 3);</P><P>BOOL bCreate = m_ctrlSynEdit.Create(</FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>, TRUE, TRUE);</P><P>m_ctrlSynEdit.ModifyStyleEx(0, WS_EX_CLIENTEDGE); </P><P></FONT><FONT color=#008000 size=2>//m_ctrlSynEdit.ModifyStyle(0, WS_BORDER); </P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> h = rcEdit.Height() - 10;</P><P>rcEdit.bottom = rcEdit.top + h / 2;</P><P>m_ctrlSynEdit.MoveWindow(&amp;rcEdit); </P><P>bCreate = m_ctrlSynEdit2.Create(</FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>, TRUE, TRUE);</P><P>m_ctrlSynEdit2.ModifyStyleEx(0, WS_EX_CLIENTEDGE); </P><P></FONT><FONT color=#008000 size=2>//m_ctrlSynEdit.ModifyStyle(0, WS_BORDER); </P></FONT><FONT size=2><P>rcEdit.top = rcEdit.bottom + 5;</P><P>rcEdit.bottom = rcEdit.top + h / 2;</P><P>m_ctrlSynEdit2.MoveWindow(&amp;rcEdit); </P><P>CXTPSyntaxEditBufferManager* pDataMan = m_ctrlSynEdit.GetEditBuffer(); </P><P>ASSERT(pDataMan);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pDataMan)</P><P>{</P><P>pDataMan-&gt;InsertText(_T(</FONT><FONT color=#a31515 size=2>""</FONT><FONT size=2>), 1,1, FALSE);</P><P>}</P><P>m_ctrlSynEdit.SetFocus();</P><P>m_ctrlSynEdit.SetConfigFile(CXTPSyntaxEditCtrl::GetModulePath() + _T(</FONT><FONT color=#a31515 size=2>"EditConfig\\SyntaxEdit.ini"</FONT><FONT size=2>));</P><P></P><P>CXTPSyntaxEditBufferManager* pDataMan2 = m_ctrlSynEdit2.GetEditBuffer(); </P><P>ASSERT(pDataMan2);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pDataMan2)</P><P>{</P><P>pDataMan2-&gt;InsertText(_T(</FONT><FONT color=#a31515 size=2>""</FONT><FONT size=2>), 1,1, FALSE);</P><P>}</P><DIV></FONT></FONT><FONT color=#0000ff size=2>......................</FONT></DIV><DIV><FONT color=#0000ff size=2></FONT>&nbsp;</DIV><DIV><FONT color=#0000ff size=2>void</FONT><FONT size=2> CSyntaxEditOnDialogDlg::OnSize(UINT nType, </FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> cx, </FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> cy) </DIV></DIV><DIV><P>{</P><P>CDialog::OnSize(nType, cx, cy);</P><P></P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (m_ctrlSynEdit.m_hWnd &amp;&amp; IsWindow(m_ctrlSynEdit.m_hWnd))</P><P>{</P><P>CRect rcEdit;</P><P>GetClientRect(&amp;rcEdit);</P><P>rcEdit.DeflateRect(3, 3);</P><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> h = rcEdit.Height() - 10;</P><P>rcEdit.bottom = rcEdit.top + h / 2;</P><P>m_ctrlSynEdit.MoveWindow(&amp;rcEdit);</P><P>rcEdit.top = rcEdit.bottom + 5;</P><P>rcEdit.bottom = rcEdit.top + h / 2;</P><P>m_ctrlSynEdit2.MoveWindow(&amp;rcEdit);</P><P>} </P><P>}</P></FONT></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 27 Jan 2009 13:23:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7350&amp;PID=44938&amp;title=cxtpsyntaxeditctrl-in-a-dialog#44938</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPSyntaxEditCtrl in a Dialog : About linked sampe code -  1....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7350&amp;PID=44936&amp;title=cxtpsyntaxeditctrl-in-a-dialog#44936</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 7350<br /><strong>Posted:</strong> 27 January 2009 at 12:35pm<br /><br />About linked sampe code - <DIV>1. You need to add one line&nbsp;in stdafx.h file to compile</DIV><DIV><FONT color=#0000ff size=2><P>#define</FONT><FONT size=2> _XTP_INCLUDE_SYNTAXEDIT_LEXER</P></FONT><FONT color=#0000ff size=2><P>#include</FONT><FONT size=2> </FONT><FONT color=#a31515 size=2>&lt;XTToolkitPro.h&gt;</FONT><FONT size=2> </FONT><FONT color=#008000 size=2>// Codejock Software Components</P><DIV><FONT color=#0000ff size=2><P><FONT color=#008000><FONT color=#000000>2 comment include </FONT></FONT></P><FONT color=#008000><FONT color=#000000><FONT color=#008000 size=2><P>//#include "SyntaxEditOnDialogDlg2.h"</P></FONT><DIV>and body of 2nd dialog function or add your implementation</FONT></DIV><DIV></FONT>void</FONT><FONT size=2><FONT color=#000000> CSyntaxEditOnDialogDlg::OnToolsDialog2() </FONT></FONT></DIV><DIV><FONT size=2><FONT color=#000000>{</FONT></FONT></DIV><DIV><FONT size=2><FONT color=#000000><FONT color=#008000 size=2>// CSyntaxEditOnDialogDlg2 dlg(this);</DIV><P>// dlg.DoModal();</P><DIV></FONT>}</DIV><DIV>missing implemenation in zip-file</FONT></DIV></FONT></DIV></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 27 Jan 2009 12:35:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7350&amp;PID=44936&amp;title=cxtpsyntaxeditctrl-in-a-dialog#44936</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPSyntaxEditCtrl in a Dialog : Hi,  Can someone tell me how...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7350&amp;PID=42936&amp;title=cxtpsyntaxeditctrl-in-a-dialog#42936</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4725">skanikdale</a><br /><strong>Subject:</strong> 7350<br /><strong>Posted:</strong> 18 November 2008 at 8:29am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Can someone tell me how to add multiple syntax edit control on a dialog?</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV>]]>
   </description>
   <pubDate>Tue, 18 Nov 2008 08:29:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7350&amp;PID=42936&amp;title=cxtpsyntaxeditctrl-in-a-dialog#42936</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPSyntaxEditCtrl in a Dialog : You can get it here: uploads/...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7350&amp;PID=29843&amp;title=cxtpsyntaxeditctrl-in-a-dialog#29843</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3233">AndreiM</a><br /><strong>Subject:</strong> 7350<br /><strong>Posted:</strong> 02 January 2008 at 1:47pm<br /><br />You can get it here:<DIV><a href="https://forum.codejock.com/uploads/20071009_104114_SyntaxEdit&#079;nDia.zip" target="_blank">uploads/20071009_104114_SyntaxEditOnDia.zip</A></DIV>]]>
   </description>
   <pubDate>Wed, 02 Jan 2008 13:47:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7350&amp;PID=29843&amp;title=cxtpsyntaxeditctrl-in-a-dialog#29843</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPSyntaxEditCtrl in a Dialog : Hello,Is it possible to download...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7350&amp;PID=29842&amp;title=cxtpsyntaxeditctrl-in-a-dialog#29842</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3621">lfumery</a><br /><strong>Subject:</strong> 7350<br /><strong>Posted:</strong> 02 January 2008 at 1:28pm<br /><br />Hello,<br><br>Is it possible to download this sample somewhere ? I'm currently playing with the eval version of 11.2.2.<br><br>(my last registered version is 10.3.1, quite old, so without SyntaxEdit)<br><br>Thank you for your help...<br>Lionel<br>]]>
   </description>
   <pubDate>Wed, 02 Jan 2008 13:28:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7350&amp;PID=29842&amp;title=cxtpsyntaxeditctrl-in-a-dialog#29842</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPSyntaxEditCtrl in a Dialog : In version 11.2 itworks for dialog....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7350&amp;PID=26567&amp;title=cxtpsyntaxeditctrl-in-a-dialog#26567</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3233">AndreiM</a><br /><strong>Subject:</strong> 7350<br /><strong>Posted:</strong> 28 September 2007 at 3:28am<br /><br />In version 11.2 it&nbsp;works for dialog. <DIV>The sample provided&nbsp;at&nbsp;ExtendedSamples\SyntaxEditOnDialog.zip</DIV>]]>
   </description>
   <pubDate>Fri, 28 Sep 2007 03:28:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7350&amp;PID=26567&amp;title=cxtpsyntaxeditctrl-in-a-dialog#26567</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPSyntaxEditCtrl in a Dialog : Has anyone got the SyntaxEditCtrl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7350&amp;PID=23561&amp;title=cxtpsyntaxeditctrl-in-a-dialog#23561</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3063">rodneyh</a><br /><strong>Subject:</strong> 7350<br /><strong>Posted:</strong> 09 June 2007 at 11:52pm<br /><br /><P>Has anyone got the SyntaxEditCtrl to work in a dialog clas in version 11.1.3?&nbsp; </P><DIV>If so can you provide sample code?</DIV>]]>
   </description>
   <pubDate>Sat, 09 Jun 2007 23:52:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7350&amp;PID=23561&amp;title=cxtpsyntaxeditctrl-in-a-dialog#23561</guid>
  </item> 
 </channel>
</rss>