Print Page | Close Window

Syntax edit within dialog

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=6173
Printed Date: 21 November 2024 at 5:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Syntax edit within dialog
Posted By: znakeeye
Subject: Syntax edit within dialog
Date Posted: 20 January 2007 at 2:45pm
Hi,
 
How do I add a syntax edit control in a dialog resource? I tried adding a custom class with the class name set to "XTPSyntaxEditCtrl", but it didn't work.
 
Any ideas?
Thanks!



Replies:
Posted By: sserge
Date Posted: 22 January 2007 at 1:21pm
Please read the following topic: http://forum.codejock.com/forum_posts.asp?TID=5211 - http://forum.codejock.com/forum_posts.asp?TID=5211
 
It is for Report control but the idea is the same - you have to call

m_wndSyntaxEditCtrl.RegisterWindowClass( hInstanceOfYourResource )


--
WBR,
Serge


Posted By: kusim
Date Posted: 23 January 2007 at 6:07pm
Sorry, Can I get some sample about this?



Posted By: mgampi
Date Posted: 10 May 2007 at 6:52am
Hi;
 
has anyone successfully integrated the sytax edit control in a dialog?
I'm unable to do this!  I tried the solutions mentioned by Serge but with no success.
Unfortunately CXTPSyntaxEditCtrl::RegisterWindowClass() is a private function.
 
Any help is very welcome.
 


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022


Posted By: AndreiM
Date Posted: 28 September 2007 at 4:49am
Dialog support added in 11.2.
See example at: ExtendedSamples\SyntaxEditOnDialog.zip


-------------
Regards,
Andrei Melnik


Posted By: RobiSoft
Date Posted: 09 October 2007 at 10:32am
Very well, but where can I find the extended samples? I have installed the 11.2.0 version....
Thank you


Posted By: AndreiM
Date Posted: 09 October 2007 at 10:42am
They are placed here: ToolkitPro\Workspace\Support\ExtendedSamples
But to be shue I attach it here:  https://forum.codejock.com/uploads/20071009_104114_SyntaxEditOnDia.zip - uploads/20071009_104114_SyntaxEditOnDia.zip


-------------
Regards,
Andrei Melnik


Posted By: RobiSoft
Date Posted: 09 October 2007 at 11:13am
Thank you very much. The example works fine!!


Posted By: kingsollyu
Date Posted: 27 December 2012 at 1:25am
in ur *Dlg.h include 
#include "SyntaxEdit\XTPSyntaxEditBufferManager.h"
and add 
CXTPSyntaxEditCtrl m_wndRich1;

on OnInitDialog()
#include "_cpp1_schclass.h"
m_wndRich1.SetSyntaxAndColorScheme(strColor, sColorTheme);
m_wndRich1.GetEditBuffer()->SetFileExt(_T(".c"));




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net