Interesting scrolling bug |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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!
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
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!
|
|
AndreiM
Moderator Group Joined: 18 August 2007 Status: Offline Points: 132 |
Post Options
Thanks(0)
|
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |