Print Page | Close Window

Interesting scrolling 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=7020
Printed Date: 10 May 2024 at 1:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Interesting scrolling bug
Posted By: znakeeye
Subject: Interesting scrolling bug
Date Posted: 01 May 2007 at 1:27am
Hi,
I have an MDI-application with a splitter with two columns: one custom CView and one CXTPSyntaxEditView.
 
CMainFrame -> CXTPTabClientWnd -> CMyMDIFrame
     -> CXTSplitterWnd -> (CMyView + CXTPSyntaxEditView)
 
The CXTPSyntaxEditCtrl is responsible for the scrollbar bug shown below! Upon creation, the edit control adds scrollbars on BOTH the views. Calling pEditView->GetEditCtrl().SetCreateScrollbarOnParent(FALSE) removes the extra scrollbars on MY own custom view, but the syntax edit view is not affected. What the?!
 
Double scrollbars when using a splitter.
 
Sure seems like CXTPSyntaxEditCtrl does not care what the view looks like. Any suggestions? Thanks!



Replies:
Posted By: znakeeye
Date Posted: 07 May 2007 at 2:17am
Calling GetEditCtrl().SetCreateScrollbarOnParent(FALSE) in the constructor of the view solves the problem. However, I do not like it. This "scrollbar on parent" thing seems strange. If enabled, any view in a parent splitter gets scrollbars!


Posted By: AndreiM
Date Posted: 28 September 2007 at 4:51am
The CXTPSyntaxEditCtrl may be used in 2 modes:
 1. As a 'standalone' control with own scrollbars (on CVew, CDialog based parent window);
 2. As a main control for CVew based parent class.
 
For the second case CXTPSyntaxEditCtrl shoud use scroll bars from the parent.
SetCreateScrollbarOnParent used to define which scrollbars will be used.
 


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



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