Print Page | Close Window

CXTPControlSlider ????

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


Topic: CXTPControlSlider ????
Posted By: terrym
Subject: CXTPControlSlider ????
Date Posted: 13 June 2008 at 12:38pm
Is there an example using CTPControlSlider as we cant seem to find one and ours is not working :(
 
Also why does it show white behind the background if we hover over this control on a ribbon???
 
Thanks
Terry
 


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

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



Replies:
Posted By: SuperMario
Date Posted: 13 June 2008 at 1:49pm
CommandBarControls and CommandBarsDesigner both use this class.


Posted By: terrym
Date Posted: 13 June 2008 at 1:55pm
Originally posted by SuperMario SuperMario wrote:

CommandBarControls and CommandBarsDesigner both use this class.
 
However how do we stop it being white behind the control when added to a ribbon :( and also there is a focus rectangle drawn around it :( does not look good


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

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


Posted By: SuperMario
Date Posted: 13 June 2008 at 2:53pm
Maybe you would like this:

    CXTPToolBar* pToolBarScrollBar = pCommandBars->Add(_T("ScrollBar"), xtpBarTop);
    pToolBarScrollBar->GetControls()->Add(xtpControlLabel, 0)->SetCaption(_T("CXTPControlScrollBar:"));
    CXTPControlScrollBar* pSBControl = (CXTPControlScrollBar*)pToolBarScrollBar->GetControls()->Add(new CXTPControlScrollBar());
    pSBControl->SetScrollBarStyle(xtpScrollStyleSlider);
    DockRightOf(pToolBarScrollBar, pToolBarSlider);


Posted By: terrym
Date Posted: 13 June 2008 at 3:32pm
so this code will work for ribbons??? as we want to add our slider to a group we have


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

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


Posted By: SuperMario
Date Posted: 13 June 2008 at 3:46pm
It will, and it will look different with each theme.

I'm not the MFC guy, so maybe Oleg has a better solution, but I like that Scroll\Slider, it is the same that is in the zoom pane for Office 2007 statusbar.


Posted By: terrym
Date Posted: 13 June 2008 at 5:54pm
Thanks for help, however Oleg has now given us an MFC solution
 
Cheers again
Terry


-------------
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