Print Page | Close Window

Used in Tabbed View. Is it BUG ?!

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=6824
Printed Date: 06 October 2024 at 1:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Used in Tabbed View. Is it BUG ?!
Posted By: wowhos
Subject: Used in Tabbed View. Is it BUG ?!
Date Posted: 10 April 2007 at 3:43am

The Syntax Editor is very useful and the control that I have wanted to use.

I'd like to use two SyntaxEdit View with TabbedView in my application.
So, I created the CXTPTabControl in CView and attached two SyntaxEditView to it, but I have several problems.
 
Problem is I have touble horizontal & vertical scroll bars in each SyntaxEdit View.
And if I select another view, it isn't redraw and just show the background color.How can I fix it.
 
I need help.
 
https://forum.codejock.com/uploads/20070410_033825_FunnySample.zip - uploads/20070410_033825_FunnySample.zip
 



Replies:
Posted By: Oleg
Date Posted: 10 April 2007 at 7:23am
Hello,
 
Do you use last 10.4.2 release?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: wowhos
Date Posted: 10 April 2007 at 9:30am
Yes, It's v10.4.2.


Posted By: wowhos
Date Posted: 11 April 2007 at 12:21am
I want answer from CodeJock.
Help me. please~


Posted By: Oleg
Date Posted: 11 April 2007 at 4:29am
Hi,
 
to fix it, in CShaderEditor class add:
 
 
CShaderEditor::CShaderEditor()
{
 GetEditCtrl().SetCreateScrollbarOnParent(FALSE);
}
 
and
 
BOOL CShaderEditor::PreCreateWindow(CREATESTRUCT& cs)
{
 // TODO: Add your specialized code here and/or call the base class
 
 if (!CXTPSyntaxEditView::PreCreateWindow(cs))
  return FALSE;
 
 cs.dwExStyle &= ~WS_EX_TRANSPARENT;
 return TRUE;
}


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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