Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - Interesting scrolling bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Interesting scrolling bug

 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: Interesting scrolling bug
    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!
Back to Top
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 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!
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: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.
 
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.172 seconds.