scroll bar style bug  
       
      Printed From: Codejock Forums
        Category:  Codejock Products
       Forum Name:  Toolkit Pro
       Forum Description:  Topics Related to Codejock Toolkit Pro
       URL: http://forum.codejock.com/forum_posts.asp?TID=7810
       Printed Date: 04 November 2025 at 9:49am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
      
 
  
      Topic: scroll bar style bug
       
      Posted By: terrym
       Subject: scroll bar style bug
       Date Posted: 16 August 2007 at 6:42am
       
      
        
          | 
	
 We have initialised a vertical and horizontal scroll bar however both have different styles ??? 
  
m_VScrollBar.Create( WS_CHILD | WS_VISIBLE | SBS_VERT, CRect( 0, 0, 0, 0 ), this, 100 );
m_VScrollBar.SetScrollBarStyle( xtpScrollStyleOffice2007Dark );
m_HScrollBar.Create( WS_CHILD | WS_VISIBLE | SBS_HORZ, CRect( 0, 0, 0, 0 ), this, 100 );
m_HScrollBar.SetScrollBarStyle( xtpScrollStyleOffice2007Dark );  
  
but we set both scroll bars to same xtpScrollStyleOffice2007Dark, any ideas please ? 
  
  ------------- Thank you, Terry Mancey
  email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
          | 
         
        
      
 
  Replies: 
       
      Posted By: terrym
       
      Date Posted: 16 August 2007 at 10:28am
       
      
        
          | 
	
Also for some reason I cannot get the scroll bars to work, I have a OnVScroll handler and also a calculateverticalscrollbar function which both look fine (see attached file), but for some reason it wont set the scroll bar position ???
   
Any help appreciated
  
 http://forum.codejock.com/uploads/20070816_102806_CScrollBar.zip - uploads/20070816_102806_CScrollBar.zip  
  
see this file to see our code 
  ------------- Thank you, Terry Mancey
  email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
          | 
         
        
        
       
      
      Posted By: Oleg
       
      Date Posted: 17 August 2007 at 8:47am
       
      
        
          | 
	
 Hi, 
  
I don't see OnHScrollbar and CalculateHorizontalScrollBar in attachment. 
  ------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
          | 
         
        
        
       
      
      Posted By: terrym
       
      Date Posted: 17 August 2007 at 8:51am
       
      
        
          
	
ah fixed that issue, but see the image, above why does the horizontal scroll bar have a different colour scheme to vertical scroll bar ?
  ------------- Thank you, Terry Mancey
  email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
          | 
         
        
        
       
      
      Posted By: Oleg
       
      Date Posted: 18 August 2007 at 4:05am
       
      
        
          | 
	
Hi,
   
guess you include ribbon bitmaps from previous version. 
  ------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
          | 
         
        
        
       
      
      Posted By: terrym
       
      Date Posted: 18 August 2007 at 7:33am
       
      
        
          | 
	
Hi
   
Not at all, I installed 11.1.3 and use 11.1.3, I installed over top of old versions :( 
  ------------- Thank you, Terry Mancey
  email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
          | 
         
        
        
       
      
      Posted By: Oleg
       
      Date Posted: 20 August 2007 at 2:42am
       
      
        
          | 
	
hI,
   
Set breakpoint in CXTPControlGalleryOffice2007Theme::DrawScrollBar method in 
--- 
else  {   CXTPOffice2007Image* pImageBackground = pPaintManager->LoadImage(    bLight ? _T("CONTROLGALLERYSCROLLHORIZONTALLIGHT") : _T("CONTROLGALLERYSCROLLHORIZONTALDARK")); --- 
  
and check if pImageBackground  is not null. 
  ------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
          | 
         
        
        
       
      
      Posted By: terrym
       
      Date Posted: 21 August 2007 at 6:19am
       
      
        
          | 
	
looking into this and will reply soon with what it does
   
Cheers 
Terry 
  ------------- Thank you, Terry Mancey
  email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
          | 
         
        
        
       
      
      Posted By: terrym
       
      Date Posted: 28 August 2007 at 3:19am
       
      
        
          
	
Ok I tried above and pImageBackground is not null ??? very strange, what else can I check please as it clearly has pointers and is drawing
CONTROLGALLERYSCROLLVERTICALDARK 
CONTROLGALLERYSCROLLHORIZONTALDARK 
Look forward to a reply  
  ------------- Thank you, Terry Mancey
  email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
          | 
         
        
        
       
      
      Posted By: Oleg
       
      Date Posted: 03 September 2007 at 5:37am
       
      
        
          | 
	
 Hello, 
Create small sample and attach it in issue. 
  ------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
          | 
         
        
        
       
      
      Posted By: terrym
       
      Date Posted: 24 September 2007 at 4:53am
       
      
        
          
	
This problem was fixed in  https://forum.codejock.com/forum_posts.asp?TID=8131&KW=scroll+bar - https://forum.codejock.com/forum_posts.asp?TID=8131&KW=scroll+bar 
  ------------- Thank you, Terry Mancey
  email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
          | 
         
        
        
       
      
     |