Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - Syntax edit within dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Syntax edit within dialog

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Syntax edit within dialog
    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!
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 22 January 2007 at 1:21pm
Please read the following topic: 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
Back to Top
kusim View Drop Down
Newbie
Newbie


Joined: 11 May 2006
Location: Korea, North
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote kusim Quote  Post ReplyReply Direct Link To This Post Posted: 23 January 2007 at 6:07pm
Sorry, Can I get some sample about this?

Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
AndreiM View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 18 August 2007
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndreiM Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2007 at 4:49am
Dialog support added in 11.2.
See example at: ExtendedSamples\SyntaxEditOnDialog.zip
Back to Top
RobiSoft View Drop Down
Newbie
Newbie
Avatar

Joined: 09 October 2007
Location: Italy
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote RobiSoft Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
AndreiM View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 18 August 2007
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndreiM Quote  Post ReplyReply Direct Link To This Post Posted: 09 October 2007 at 10:42am
They are placed here: ToolkitPro\Workspace\Support\ExtendedSamples
But to be shue I attach it here:  uploads/20071009_104114_SyntaxEditOnDia.zip
Back to Top
RobiSoft View Drop Down
Newbie
Newbie
Avatar

Joined: 09 October 2007
Location: Italy
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote RobiSoft Quote  Post ReplyReply Direct Link To This Post Posted: 09 October 2007 at 11:13am
Thank you very much. The example works fine!!
Back to Top
kingsollyu View Drop Down
Newbie
Newbie


Joined: 28 September 2012
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote kingsollyu Quote  Post ReplyReply Direct Link To This Post 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"));

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.