|  | 
| Unlocalizable calendar strings | 
| Post Reply   | 
| Author | |
| rsvihalek   Groupie   Joined: 21 August 2009 Status: Offline Points: 14 |  Post Options  Thanks(0)  Quote  Reply  Topic: Unlocalizable calendar strings Posted: 17 October 2009 at 6:04am | 
| 
   Hello,
 I've find some strings in the calendar control which are hardcoded in the toolkit:   I've looked into the source codes and they are really hardcoded, see XTPCalendarCaptionBarControl.cpp, lines 404 and 409. Can you please make them localizable? Btw. there were some untranslated strings in the czech resources of 13.1.0 for calendar, I' ve translate them: Resource_cs.rc | |
| 
     Product: Xtreme ToolkitPro v13.3.0 
 Platform: Windows 7 (64bit) - SP 2 Language: Visual C++ 9.0 www.ActivityMon.com The Ultimate Monitoring Solution | |
|  | |
| mdoubson   Senior Member     Joined: 17 November 2008 Status: Offline Points: 1705 |  Post Options  Thanks(0)  Quote  Reply  Posted: 19 October 2009 at 9:39am | 
| 
   You can use function  to set any text for this buttons or empty string to hide non-needed buttons:
 
GetCalendarCaptionBarCtrl().SetButtonText(0, _T("Day"));
GetCalendarCaptionBarCtrl().SetButtonText(1, _T("Week"));
GetCalendarCaptionBarCtrl().SetButtonText(2, _T("Month"));
GetCalendarCaptionBarCtrl().SetButtonText(3, _T("Timeline special mode"));
GetCalendarCaptionBarCtrl().SetButtonText(4, _T("WorkWeek"));
GetCalendarCaptionBarCtrl().SetButtonText(5, _T("FullWeek"));
GetCalendarCaptionBarCtrl().SetButtonText(6, _T("MultiColumn mode"));
 | |
|  | |
| rsvihalek   Groupie   Joined: 21 August 2009 Status: Offline Points: 14 |  Post Options  Thanks(0)  Quote  Reply  Posted: 20 October 2009 at 3:17am | 
| 
   Thank you for the reply, I will use it. But when I try to hide any of radion button or check box using the empty text the result is the following:
   | |
| 
     Product: Xtreme ToolkitPro v13.3.0 
 Platform: Windows 7 (64bit) - SP 2 Language: Visual C++ 9.0 www.ActivityMon.com The Ultimate Monitoring Solution | |
|  | |
| mdoubson   Senior Member     Joined: 17 November 2008 Status: Offline Points: 1705 |  Post Options  Thanks(0)  Quote  Reply  Posted: 20 October 2009 at 8:49am | 
| 
   For checkbox and radiobutton there are other functions:
 GetCalendarCaptionBarCtrl().EnableMulticolumns(FALSE); GetCalendarCaptionBarCtrl().EnableTimeline(FALSE);  | |
|  | |
| mdoubson   Senior Member     Joined: 17 November 2008 Status: Offline Points: 1705 |  Post Options  Thanks(0)  Quote  Reply  Posted: 20 October 2009 at 4:07pm | 
| 
   You also need to force CaptionBar update - e.g. in CCalendarDemoView::OnInitialUpdate() use settings before switch to start View (here - MonthView):
 OnCalendarViewWorkWeek(); GetCalendarCaptionBarCtrl().EnableTimeline(FALSE); GetCalendarCaptionBarCtrl().SetButtonText(4, _T("")); GetCalendarCaptionBarCtrl().SetButtonText(5, _T("")); GetCalendarCaptionBarCtrl().SetButtonText(6, _T("")); OnCalendarViewMonth(); | |
|  | |
| 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 |