add static text to toolbar |
Post Reply |
Author | |
Joe Brown
Newbie Joined: 01 March 2004 Status: Offline Points: 15 |
Post Options
Thanks(0)
Posted: 07 May 2004 at 5:53pm |
I have a toolbar, and want to add a slider control to it. I have it all working, but I also want to add text to the left of it that says the current position of the slider. I created a button in the toolbar as a placeholder, and in OnCreateControl, I create a CStatic and attach it to the toolbar. However, the font of the CStatic is different from everything else.
How do I get the same font? Is it possible to have a caption for any control in a toolbar? I couldn't get it to work for a CSliderCtrl. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
in the CommonControls you can find CControlStatic implementation.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Joe Brown
Newbie Joined: 01 March 2004 Status: Offline Points: 15 |
Post Options
Thanks(0)
|
Works great! I have Toolkit Pro v8.51, and the documentation pretty much only lists member functions and variables, not actual functionality and descriptive info. Takes a lot of time to find answers on your own. Appreciate the help!
|
|
amyvt
Newbie Joined: 14 May 2004 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
another way: My application has "vcr" buttons in the toolbar, and text next to it "item X of Y" the way I do it is to create a dummy toolbar button, like you did and an UPDATE_COMMAND_UI handler. When I update my variables, the text "updates itself". ON_UPDATE_COMMAND_UI(ID_DUMMY2, OnUpdateDummy2) void CTabFrameWnd::OnUpdateDummy2(CCmdUI* pCmdUI) |
|
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 |