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

CXTPControlSlider ????

 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: CXTPControlSlider ????
    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
Back to Top
SuperMario View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 13 June 2008 at 1:49pm
CommandBarControls and CommandBarsDesigner both use this class.
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: 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
Back to Top
SuperMario View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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);
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: 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
Back to Top
SuperMario View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.
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: 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
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.064 seconds.