Print Page | Close Window

CXTPSyntaxEditView Load File

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=6155
Printed Date: 23 November 2024 at 10:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPSyntaxEditView Load File
Posted By: thodgson
Subject: CXTPSyntaxEditView Load File
Date Posted: 18 January 2007 at 10:30am
Is there a way to load a file into a CXTPSyntaxEditView class without using a CXTPSyntaxEditDoc class attached to it?
 
I see in the help the class CXTPSyntaxEditBufferManager which appears to be what I'm looking for but there are no examples of its use or how it is supposed to work.
 
Thanks,
 


-------------
Tim H( http://www.ExclamationSoft.com - http://www.ExclamationSoft.com )
Product: Xtreme Toolkit v13.1
Platform: Vista(x64)-SP1
Language: Visual C++ 6.0
Currently: Satisfied w/ Toolkit



Replies:
Posted By: thodgson
Date Posted: 18 January 2007 at 10:38am
Never mind. 
 
I figured it out.
 
CXTPSyntaxEditBufferManager *pXTPSyntaxEditBufferManager = this->GetEditBuffer();
pXTPSyntaxEditBufferManager->InsertText("Test", 1, 1);
My mistake was that I was doing a InsertText on row 0, column 0.


-------------
Tim H( http://www.ExclamationSoft.com - http://www.ExclamationSoft.com )
Product: Xtreme Toolkit v13.1
Platform: Vista(x64)-SP1
Language: Visual C++ 6.0
Currently: Satisfied w/ Toolkit



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