![]() |
CaptionBar not translating |
Post Reply
|
| Author | |
AndyWilton
Groupie
Joined: 03 June 2008 Status: Offline Points: 82 |
Post Options
Thanks(0)
Quote Reply
Topic: CaptionBar not translatingPosted: 09 July 2009 at 7:26am |
|
Hi all,
I have a scenario where I need to be able to swtich languages at runtime. I issue the correct commands to specify the ResourceFile etc and all the controls updates correctly except for the CaptionBar.
Is there an additional command that is needed to update the CaptionBar after the calendar is initialized?
As extra info, if I set the ResourceFile prior to initializing the Calendar, then the CaptionBar options are displayed correctly.
Thanks in advance,
Regards,
Andy
|
|
|
Product: Xtreme SuitePro (ActiveX) v11.2.1 -> v15.2.1
Platform: Windows XP / Vista / Win 7 Language: Clarion 5.5 -> C8.x ====================================== Andy Wilton |
|
![]() |
|
mdoubson
Senior Member
Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 July 2009 at 9:24am |
|
All CaptionBar buttons label can be set in your code -
e.g.
CalendarControl.OneLineCaptionBar = True
CalendarControl.CaptionButtonTitle 0, "D" CalendarControl.CaptionButtonTitle 1, "W" CalendarControl.CaptionButtonTitle 2, "M" CalendarControl.CaptionButtonTitle 3, "TL" CalendarControl.CaptionButtonTitle 4, "WW" CalendarControl.CaptionButtonTitle 5, "FW" CalendarControl.CaptionButtonTitle 6, "III" |
|
![]() |
|
AndyWilton
Groupie
Joined: 03 June 2008 Status: Offline Points: 82 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 July 2009 at 8:26pm |
|
Hi Mark,
Yes, I'd found those methods but how do I get what the translated values are?
Regards,
Andy
|
|
|
Product: Xtreme SuitePro (ActiveX) v11.2.1 -> v15.2.1
Platform: Windows XP / Vista / Win 7 Language: Clarion 5.5 -> C8.x ====================================== Andy Wilton |
|
![]() |
|
mdoubson
Senior Member
Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 July 2009 at 9:11pm |
|
Ask your client who suppose to know expected language or use Google Translator to find this poor 4 words in your desired language
|
|
![]() |
|
AndyWilton
Groupie
Joined: 03 June 2008 Status: Offline Points: 82 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 July 2009 at 6:30am |
|
Hi Mark,
Sorry, I think you've missed the point of my original question.
If I set the ResourceFile before the Calendar is initialized, then everything gets translated correctly including the CaptionBar options. BUT, if I set the ResourceFile after the Calendar is initialized, then only the Calendar and DatePicker controls etc get translated - not the CaptionBar.
Why the difference? and is there a method to call to get the CaptionBar to re-translate?
Regards,
Andy
|
|
|
Product: Xtreme SuitePro (ActiveX) v11.2.1 -> v15.2.1
Platform: Windows XP / Vista / Win 7 Language: Clarion 5.5 -> C8.x ====================================== Andy Wilton |
|
![]() |
|
mdoubson
Senior Member
Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 July 2009 at 7:43am |
|
I guess you need to define some strings in resurce file (e.g. __MONTH__SHORT__TERM__) and assing CaptionBar Button string value run-time like
CalendarControl.CaptionButtonTitle 2, __MONTH__SHORT__TERM__
|
|
![]() |
|
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 |