![]() |
CXTPControlScrollBar |
Post Reply
|
| Author | |
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPControlScrollBarPosted: 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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 June 2008 at 3:36am |
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 |
|
![]() |
|
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 |