Print Page | Close Window

CXTPControlScrollBar

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=11061
Printed Date: 15 November 2025 at 6:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPControlScrollBar
Posted By: terrym
Subject: CXTPControlScrollBar
Date Posted: 16 June 2008 at 4:02pm

We have the below code which creates an Office 2007 style slider on the ribbon, however how do we check SB_ENDSCROLL for this slider :( as we need to do something once the scroll ends
 
also is there a way to detect when the slider is first pressed as we need to store some information in our Undo buffer.
 
CXTPControlScrollBar *pControlSlider = (CXTPControlScrollBar *)pRibbonGroup->Add( new CXTPControlScrollBar, ID_ADJUST_OPACITY_SLIDER );

pControlSlider->SetScrollBarStyle( xtpScrollStyleSlider );

pControlSlider->SetFlags( xtpFlagSkipFocus );

pControlSlider->SetWidth( 110 );

pControlSlider->SetPos( 0 );

pControlSlider->SetRange( 0, 100 );



-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



Replies:
Posted By: Oleg
Date Posted: 17 June 2008 at 12:23am
Hi,
 
You can override
void CXTPControlScrollBar::OnScroll(UINT nSBCode, UINT nPos)
 
and check if nSBCode is SB_ENDSCROLL.  Check sources.


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


Posted By: terrym
Date Posted: 17 June 2008 at 3:36am
Originally posted by oleg oleg wrote:

Hi,
 
You can override
void CXTPControlScrollBar::OnScroll(UINT nSBCode, UINT nPos)
 
and check if nSBCode is SB_ENDSCROLL.  Check sources.
 
Cheers, we found this after posting and it worked a treat.  Thanks for getting back.
 
Did you see my other support questions I emailed as there is a major one :( with a square image appearing where we put <linebreak/> on XP machines
 


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



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