Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - CaptionBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CaptionBar

 Post Reply Post Reply
Author
Message
gmail View Drop Down
Groupie
Groupie


Joined: 24 February 2008
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote gmail Quote  Post ReplyReply Direct Link To This Post Topic: CaptionBar
    Posted: 14 March 2009 at 3:34pm
How can we customize CaptionBar control in CXTPCalendarView? E.g. i have to change those buttons labels from "day", "week", "month" to "x","y","z"? Can we add other tab buttons or that 3 is the max limit? Please, help!
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 14 March 2009 at 11:42pm
If you have access to MFC code - you can easy add extra buttons follow existed patterns. Check files XTPCalendarCaptionBarControl.cpp and XTPCalendarCaptionBarControl.h You can alse derive your own class and use it instead of CXTPCalendarCaptionBarControl
 
Check also recent updates related Caption Bar Control
 
Back to Top
gmail View Drop Down
Groupie
Groupie


Joined: 24 February 2008
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote gmail Quote  Post ReplyReply Direct Link To This Post Posted: 15 March 2009 at 4:15pm
I do have access to MFC code, but I'll still derive it because it's rather unpleasant to maintain modified code (especially if I'm upgrading your controls and overwriting with newer versions on a regular basis)... I'll check those updates when you incorporate them into new version. Thanks!
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 15 March 2009 at 4:22pm
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 18 March 2009 at 8:53pm
I exposed the simple function to set your own titles for all CaptionBar buttons with text as

void CXTPCalendarCaptionBarControl::SetButtonText(int iButtonNumber, CString sButtonText); -

where iButtonNumber - from the list - 
0 ButtonViewDay, 1 ButtonViewWeek, 2 ButtonViewMonth, 3 Timeline Checkbox, 4 WorkWeek, 5 FullWeek, 6 MultiColumns for Week;
It is already in SVN
I also add same feature in ActiveX version
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.156 seconds.