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 

Problem with asian (korean) language e.g. MessageDlg, ...

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



Joined: 29 Nov 2002
Posts: 2

PostPosted: Thu Apr 14, 2005 11:47 am    Post subject: Problem with asian (korean) language e.g. MessageDlg, ... Reply with quote

Hello,

what is about the translation in the tsilang MessageDlg funtion ?
The button are "TButton" and the caption of the dialog-form has not the right charset. Is there any reason for donig so in that dialog ?

I know there problems with some components, but wht is with :
- the forms caption
- the TCkeckbox
- the TPagecontrol
- the TTabControl

I have read something about the "Ownerdraw"-Event.
Can anybody give me some examples for the ownerdraw source for the different components.

Thank you in advance.

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


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Thu Apr 14, 2005 11:56 am    Post subject: Reply with quote

First question could be: do you need it to correctly display under your OS or under your customer's OS, which has Korean as default locale? Delphi forms (an MessageDlg form is usual Delphi form) and other mentioned in your post controls are wrappers of OS controls and draw themselves using default code page defined by user. So in case you will have set Korean as your default locale under Regional Settings then all will be shown absolutely correct. Is this what is needed? Smile
Back to top
View user's profile Send private message
kuv-vokl



Joined: 29 Nov 2002
Posts: 2

PostPosted: Thu Apr 14, 2005 12:22 pm    Post subject: Reply with quote

Thank you for quick reply.

I know that there are some differences between the controls.
Some are "wrappers" and some not.
I hope it wolud be correct under the customers OS, and would be nice under my OS on my developing pc.

Please, answer:
1) Why do you use the "TButton" controls in the "tsilang.MessageDlg" ?
2) Is there any way to ownerdraw the mentioned controls(please give some example)
3) What do you exactly mean with "default locale" ? - is this the ComboBox under "Language for programs, that do not support unicode" ?

Thank you for your help.

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


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Thu Apr 14, 2005 12:46 pm    Post subject: Reply with quote

kuv-vokl wrote:

Please, answer:
1) Why do you use the "TButton" controls in the "tsilang.MessageDlg" ?


Because we use it in the same way as Delphi does itself. We just introduced the ability to retrieve translated captions but didn't change anything other in order to have the same view as you would have using Delphi's methods.

kuv-vokl wrote:
2) Is there any way to ownerdraw the mentioned controls(please give some example)


For example for TComboBox:
Code:

procedure TForm1.ComboBox1DrawItem(Control: TWinControl; Index: Integer;
  Rect: TRect; State: TOwnerDrawState);
begin
  with TComboBox(Control).Canvas do
  begin
    FillRect(Rect);
    TextOut(Rect.Left + 2, Rect.Top + 2, TComboBox(Control).Items[Index]);
  end;
end;


This simple code already will draw combo box items correctly depending on charset used.

kuv-vokl wrote:
3) What do you exactly mean with "default locale" ? - is this the ComboBox under "Language for programs, that do not support unicode" ?

Yes, this one.
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