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

Unlocalizable calendar strings

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


Joined: 21 August 2009
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote rsvihalek Quote  Post ReplyReply Direct Link To This Post 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
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: 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"));

Back to Top
rsvihalek View Drop Down
Groupie
Groupie


Joined: 21 August 2009
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote rsvihalek Quote  Post ReplyReply Direct Link To This Post 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
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: 20 October 2009 at 8:49am
For checkbox and radiobutton there are other functions:

GetCalendarCaptionBarCtrl().EnableMulticolumns(FALSE);

GetCalendarCaptionBarCtrl().EnableTimeline(FALSE);
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: 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();

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.563 seconds.