Print Page | Close Window

slider control on toolbar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=13148
Printed Date: 20 July 2025 at 6:11am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: slider control on toolbar
Posted By: JamesP
Subject: slider control on toolbar
Date Posted: 12 January 2009 at 11:27am
Could someone tell me how to add a slider control on the toolbar. We would like to have our zoom control there with a + and - button.
 
I've got code like this:
 
CSliderCtrl wndSliderCtrl;
wndSliderCtrl.Create(TBS_HORZ | WS_CHILD | WS_VISIBLE, CRect(0, 0, 200, 16), &m_wndStatusBar, IDC_SLIDER);
m_wndStatusBar.AddIndicator(ID_INDICATOR_SLIDER, iIndex);
int nIndex = m_wndStatusBar.CommandToIndexID_INDICATOR_SLIDER);
m_wndStatusBar.SetPaneWidth(nIndex, 200);
m_wndStatusBar.SetPaneStyle(nIndex, m_wndStatusBar.GetPaneStyle(nIndex) | SBPS_NOBORDERS);
m_wndStatusBar.AddControl(&m_wndSliderCtrl, ID_INDICATOR_SLIDER, FALSE);
 
This produces a slider control with the normal grey background rather than the Office2007 theme I'm using. Should I be using CXTPControlSlider?
 
I've seen reference to using CXTPControlScrollBar with a slider style in version 12 but we only have version 11.2.
 
Any help would be greatly appreciated.



Replies:
Posted By: Oleg
Date Posted: 13 January 2009 at 6:31am
Hi,
 
With 11.2 you can only use standard slider that will have gray background. :(


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: JamesP
Date Posted: 14 January 2009 at 5:43am
I upgraded to version 12 and that gave me the solution with examples that I needed, thanks.



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