|  | 
| CaptionBar | 
| Post Reply   | 
| Author | |
| gmail   Groupie   Joined: 24 February 2008 Status: Offline Points: 45 |  Post Options  Thanks(0)  Quote  Reply  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!
    | |
|  | |
| mdoubson   Senior Member     Joined: 17 November 2008 Status: Offline Points: 1705 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| gmail   Groupie   Joined: 24 February 2008 Status: Offline Points: 45 |  Post Options  Thanks(0)  Quote  Reply  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!
    | |
|  | |
| mdoubson   Senior Member     Joined: 17 November 2008 Status: Offline Points: 1705 |  Post Options  Thanks(0)  Quote  Reply  Posted: 15 March 2009 at 4:22pm | 
| Check CaptionBar and DatePicker updated functionality in this static samples: https://forum.codejock.com/uploads/DemoVersion/CalendarDemoStatic.rar https://forum.codejock.com/uploads/DemoVersion/CalendarOnDialogWithCaptionBarStatic.rar https://forum.codejock.com/uploads/DemoVersion/OutlookLikeStatic.rar https://forum.codejock.com/uploads/DemoVersion/ReportSampleSatic.rar https://forum.codejock.com/uploads/DemoVersion/NewStyleAppSource.rar https://forum.codejock.com/uploads/DemoVersion/FeaturePackCalDemoStatic.rar | |
|  | |
| mdoubson   Senior Member     Joined: 17 November 2008 Status: Offline Points: 1705 |  Post Options  Thanks(0)  Quote  Reply  Posted: 18 March 2009 at 8:53pm | 
| 
   I exposed the simple function to set your own titles for all CaptionBar buttons with text as 
 voidCXTPCalendarCaptionBarControl::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 | |
|  | |
| 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 |