Print Page | Close Window

CaptionBar not translating

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=14711
Printed Date: 07 May 2024 at 9:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CaptionBar not translating
Posted By: AndyWilton
Subject: CaptionBar not translating
Date Posted: 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



Replies:
Posted By: mdoubson
Date 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"


-------------
Mark Doubson, Ph.D.


Posted By: AndyWilton
Date 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


Posted By: mdoubson
Date 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

-------------
Mark Doubson, Ph.D.


Posted By: AndyWilton
Date 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


Posted By: mdoubson
Date 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__


-------------
Mark Doubson, Ph.D.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net