Print Page | Close Window

I want to use CXTPSyntaxEditCtrl in 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=23623
Printed Date: 18 April 2024 at 11:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: I want to use CXTPSyntaxEditCtrl in dialog.
Posted By: suji
Subject: I want to use CXTPSyntaxEditCtrl in dialog.
Date Posted: 05 April 2018 at 9:48pm
I want to use CXTPSyntaxEditCtrl in dialog.
Is it possible?
Is there no view and no doc?
If so, how do I implement it?

I tried.
However, the above problem occurred.
It becomes strange when input.
What should I do?




Replies:
Posted By: BobC
Date Posted: 15 April 2019 at 7:32pm
Some of the Codejock classes support dialog usage through custom controls in the VS dialog editor. For example, if you look at XTPReportDefines.h, you will see "const TCHAR XTTPREPORTCTRL_CLASSNAME[] = _T("XTPReport");"  You can add a Custom Control to a dialog, then give it the class name of "XTPReport" and a style of 0x56010000, create a variable, and have a report control in a dialog.

The Syntax Editor also has some #defines, one being "const TCHAR XTP_EDIT_CLASSNAME_EDITCTRL[]  = _T("CodejockSyntaxEditor");"  Though I have not tried it, I suspect you could add a Custom Control of class "CodejockSyntaxEditor" to your dialog template and include any other Syntax Editor supporting classes you need to have the editor run in a dialog.

Another alternative is to use CreateWindowEx() and do dynamic window creation.



Posted By: agontarenko
Date Posted: 22 April 2019 at 5:40am
Hello,

I've tested CXTPSyntaxEditCtrl which used with CDialog and I not found any problems. May be you set wrong settings of custom control. See screecshot.


Regards,
Artem Gontarenko



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