Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPControlScrollBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPControlScrollBar

 Post Reply Post Reply
Author
Message
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Topic: CXTPControlScrollBar
    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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post 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
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.031 seconds.