SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Checkboxes and PageControls

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
dcornelius



Joined: 27 May 2011
Posts: 7

PostPosted: Tue May 31, 2011 8:11 pm    Post subject: Checkboxes and PageControls Reply with quote

I've got a Delphi 5 application working fairly well with translations in Spanish, Russian, and Chinese showing up with the right character set for most of the controls on the form. Labels and buttons work great, but CheckBoxes and the tabs of PageControls simply show garbage when using character sets other than the default. I've also noticed the TitleBar's caption does the same thing. I've hidden the TitleBar and placed my own top-aligned label to replace it.

My installation of Windows 7 does not have any language packs installed other than English and I'm wondering if these controls would show up just fine on a system with the native character sets for these other languages.

Right now, I've hidden the tabs of the PageControl and placed Buttons on a panel which switches the pages to take care of one problem, and am placing labels next to the CheckBoxes with their text cleared to take care of the other.

Have I gone to too much work? Or do these controls behave differently? I even tried manually setting the caption and character set of these controls but that didn't help.

Thanks,
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Wed Jun 01, 2011 8:27 am    Post subject: Reply with quote

Hello,

Please note: all the below is related to non-Unicode Delphi versions (earlier than Delphi 2009)!

Some Delphi controls like TButton, TCombobox, TPageControl are just wrappers of Windows native controls and they draw themselves using the Default Locale settings independent from Charset settings, this is why they will work properly only when you set regional settings to the respective locale.
In order to fix this problem you can replace these controls with either controls that use Charset while drawing, like TBitBtn instead of TButton, or use Unicode controls like TMS Unicode Controls or LMD ElPack.

Please let me know if this helps.
Back to top
View user's profile Send private message
dcornelius



Joined: 27 May 2011
Posts: 7

PostPosted: Wed Jun 01, 2011 3:35 pm    Post subject: Reply with quote

Thank you very much! Now I understand better answers to other questions I had seen in this forum, but hadn't quite put it all together. I just downloaded the free LMD pack and the checkbox translates perfectly.

Thanks again!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group