Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - CaptionBar not translating
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CaptionBar not translating

 Post Reply Post Reply
Author
Message
AndyWilton View Drop Down
Groupie
Groupie
Avatar

Joined: 03 June 2008
Status: Offline
Points: 82
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndyWilton Quote  Post ReplyReply Direct Link To This Post Topic: CaptionBar not translating
    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
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: 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"
Back to Top
AndyWilton View Drop Down
Groupie
Groupie
Avatar

Joined: 03 June 2008
Status: Offline
Points: 82
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndyWilton Quote  Post ReplyReply Direct Link To This Post 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
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: 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
Back to Top
AndyWilton View Drop Down
Groupie
Groupie
Avatar

Joined: 03 June 2008
Status: Offline
Points: 82
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndyWilton Quote  Post ReplyReply Direct Link To This Post 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
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: 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__
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.156 seconds.