![]() |
CXTPControlSlider ???? |
Post Reply
|
| Author | |
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 June 2008 at 1:49pm |
|
CommandBarControls and CommandBarsDesigner both use this class.
|
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 June 2008 at 1:55pm |
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 |
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
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); |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |