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 

MessageDlg font change - missing text with umlauts

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



Joined: 12 Jan 2010
Posts: 14

PostPosted: Wed Oct 06, 2010 11:45 pm    Post subject: MessageDlg font change - missing text with umlauts Reply with quote

Hi.

My current issue is twofold - I have been trying to test a solution, but can't get it to work. Of course, even if I can implement my idea, it may not solve the issue.

Currently, when using the TsiLang MessageDlg function in CBuilder, the text will not display if it contains an umlaut. The box will have the right dimensions for the text, but the text itself is not there. I tested multiple scenarios to eventually prove that the umlaut is somehow the cause.

Since other issues with umlauts were related to not using a suitable font, I have been trying to change the font displayed in the message boxes, but have not been able to find a good solution.

I read in a previous post that the module should use the same font as the form to display the text in a message dialog, but I have played around with different fonts to no avail.

So, my questions are as follows:

1. Am I right that the font is causing the text to not display when there are umlauts? If not, what else may be causing this issue, and how do I resolve it?

2. How can I change the font used in message dialogs?

I'm looking forward to hearing back about this.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Thu Oct 07, 2010 3:07 am    Post subject: Reply with quote

Hello,
I'm not sure if I understood properly but do you mean that when there are umlauts in text the whole text is missing in message box or just umlauts get corrupted while display?
If the last one then:
The most possible origin of the problem is that you didn't specify the Charset setings for the form's Font property. Font name configures the font to use but Charset configures the script. For west-europenean languages with umlauts it should be ANSI_CHARSET. TsiLang uses the parent form's font property and assigns it to the font of MessageDlg() form.
Back to top
View user's profile Send private message
Thrillhouse



Joined: 12 Jan 2010
Posts: 14

PostPosted: Thu Oct 07, 2010 3:24 am    Post subject: Reply with quote

The entirety of the text is missing. The box has a heading, buttons and icon, but the actual body text is not there. It's fine without umlauts, but if I put an umlaut in the translation and run it again, the body is blank.

I tried changing the charsets associated with the form, but they're already set to ANSI_CHARSET.

Any other ideas?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Fri Oct 08, 2010 2:37 pm    Post subject: Reply with quote

Could you please create a sample project that reproduces this error and send it to us? Also please let us know the IDE version you use.
Thank you in advance.
Back to top
View user's profile Send private message
Thrillhouse



Joined: 12 Jan 2010
Posts: 14

PostPosted: Tue Oct 19, 2010 11:17 pm    Post subject: Reply with quote

I've tried it out in a small sample program, but I can't get the error to occur yet. Someone else in the organisation has a full source licence, so I'll see if I can have a look at it with them and hopefully make some progress.
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