Print Page | Close Window

Arabic text issue

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=7290
Printed Date: 23 November 2024 at 9:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Arabic text issue
Posted By: VbGuy
Subject: Arabic text issue
Date Posted: 02 June 2007 at 6:57pm

First : I would like to thank you all guys here for the great work ...

Second : I searched before I ask my question, but nothing helped me .

Last :
I want to display arabic text in the title of the application, but when I apply the Theme of CommandBar the text doesn't appear correctly .

Here is part of the code :

SetWindowText Me.hwnd, strAppTitle
RibbonBar.RibbonPaintManager.CaptionFont.Charset = 178
RibbonBar.RibbonPaintManager.CaptionFont.Name = "Tahoma"
RibbonBar.RibbonPaintManager.CaptionFont.Size = 11
RibbonBar.TabPaintManager.Font.Charset = 178
RibbonBar.TabPaintManager.Font.Name = "Tahoma"
RibbonBar.TabPaintManager.Font.Size = 11
CommandBars1.Options.Font.Charset = 178
CommandBars1.Options.Font.Name = "Tahoma"
CommandBars1.Options.Font.Size = 11
RibbonBar.EnableFrameTheme
I also tried :

CommandBars1.EnableOffice2007FrameHandle Me.hwnd
My version of Commandbar is 10.4.2
 
Thank you for your advice and reply.



Replies:
Posted By: malhabibi
Date Posted: 03 June 2007 at 4:58am
Try to put the commands in this order

Font.Charset = 178     // Arabic
Font.Size = 8
Font.Name = "Tahoma"


Posted By: VbGuy
Date Posted: 03 June 2007 at 5:45pm
I am sorry, not working ...
 
I use standard version not unicode...


Posted By: malhabibi
Date Posted: 04 June 2007 at 3:57am
After you finish adding all the controls inside the commandbar
Put these three lines in this exact sequence at the end
 
CommandBars.Options.Font.Charset = 178 // Arabic
CommandBars.Options.Font.Size = 8
CommandBars.Options.Font.Name = "Tahoma"


Posted By: Oleg
Date Posted: 04 June 2007 at 10:48am
Hello,
 
vbguy right, there is additional font for Caption used, but there is no property to change it.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: VbGuy
Date Posted: 04 June 2007 at 5:57pm
Hi,
malhabibi I put these line in the same order and in different positions but nothing changed ,,,
Could you please post an example for working project with arabic text in the title without UNICODE version of COMMANBARS ..
 
Thank you Mr. oleg for your reply,
Which property that effect the title font??? maybe with help of API we can achieve the goal.
 
Is there any way to display arabic text correctly in the title ??? anything else just doing well with arabic text ...


Posted By: Oleg
Date Posted: 05 June 2007 at 2:44am
 
Hello,
As I wrote font of Title is not same as font of controls in Ribbon, but unfortunatelly font property for title was missed (already added for next release). You can use Unicode version now.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: VbGuy
Date Posted: 05 June 2007 at 10:53pm
Thank you Mr. oleq,,,
I am looking forward for the new release .


Posted By: malhabibi
Date Posted: 06 June 2007 at 3:32am
Hi,
I'm not using the unicode version of CommandBar with PowerBuilder 10.5
and Arabic is working fine after putting these three lines in this exact sequence at the end
 
CommandBars.Options.Font.Charset = 178 // Arabic
CommandBars.Options.Font.Size = 8
CommandBars.Options.Font.Name = "Tahoma"
 
Tell me if the PowerBuilder sample will be helpful


Posted By: VbGuy
Date Posted: 06 June 2007 at 10:28pm
Thank you https://forum.codejock.com/member_profile.asp?PF=3017&FID=24 - malhabibi , but I did eaxvtly like what you say but Mr. Oleq explain why it did not work ...
 
I will wait for the new version .


Posted By: free_user
Date Posted: 07 June 2007 at 4:04am
HI
How can i download the unicode version?
Thank uou


Posted By: Oleg
Date Posted: 07 June 2007 at 6:58am
Hi,
 
Licensed version already has unicode ActiveX in bin folder. Register them using Registrator tool.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: WaleedSeada
Date Posted: 16 June 2007 at 9:02am
Hello Mah,
 
I install PB 10.5 and also not using the unicode version of codejock.
 
I still can't get Arabic to be rendered correctly, I put these lines at a separate script for the command bar, paint manager and tab paint manager:
 
CommandBars.Options.Font.Charset = 178
CommandBars.Options.Font.Size = 8
CommandBars.Options.Font.Name = "Tahoma"
 
CommandBars.ActiveMenuBar.RibbonPaintManager.CaptionFont.Charset = 178
CommandBars.ActiveMenuBar.RibbonPaintManager.CaptionFont.Name = "Tahoma"
CommandBars.ActiveMenuBar.RibbonPaintManager.CaptionFont.Size = 9
 
CommandBars.ActiveMenuBar.TabPaintManager.Font.Charset = 178
CommandBars.ActiveMenuBar.TabPaintManager.Font.Name = "Tahoma"
CommandBars.ActiveMenuBar.TabPaintManager.Font.Size = 8
 
I did the same for VB6 and it worked fine, But Pb not Okay,
Do you have any comments
 
Regards,

 


-------------
:Powerbuilder 10.5
:Codejock suite 11.2.2
=========================
Waleed Seada


Posted By: malhabibi
Date Posted: 17 June 2007 at 10:12am
Hi Waleed,
 
Try in this exact sequence:
CommandBars.Options.Font.Charset = 178
CommandBars.Options.Font.Size = 8
CommandBars.Options.Font.Name = "Tahoma"
 
CommandBars.ActiveMenuBar.RibbonPaintManager.CaptionFont.Charset = 178
CommandBars.ActiveMenuBar.RibbonPaintManager.CaptionFont.Size = 9
CommandBars.ActiveMenuBar.RibbonPaintManager.CaptionFont.Name = "Tahoma"
 
CommandBars.ActiveMenuBar.TabPaintManager.Font.Charset = 178
CommandBars.ActiveMenuBar.TabPaintManager.Font.Size = 8
CommandBars.ActiveMenuBar.TabPaintManager.Font.Name = "Tahoma"
Always make the Font.Name the last line 
 
Good Luck
MAH


Posted By: WaleedSeada
Date Posted: 17 June 2007 at 2:29pm
Hello Mah,
 
I think I found the problem.
 
The sample PB project is migrated from PB8.0.4, and when I convert it to PB10.5 I didn't notice the arabic text inside the script, it was not correct.
 
I re-type it again correctly, and it works fine now, and you know what
I don't need even to set the font properity.
 
Try it yourself, remove the script that set the font and test it.
 
Thanks for your help
 
Regards,
 
Waleed
 


-------------
:Powerbuilder 10.5
:Codejock suite 11.2.2
=========================
Waleed Seada


Posted By: VbGuy
Date Posted: 17 June 2007 at 3:07pm
Hi all
 
No everything okay, the problem was only in windows media center english version with arabic support (comes with toshiba labtop),,,
When i run my prog in another machine with arabic version text display correctly ...
 
See you around


Posted By: WaleedSeada
Date Posted: 17 June 2007 at 3:28pm
Hi all,
 
The problem is with powerbuilder, beacuse it is ANSI, untill version 10.5 which is unicode.
 
VB is unicode also has no problem with Arabic text.
 
 
Thanks and best regards
 


-------------
:Powerbuilder 10.5
:Codejock suite 11.2.2
=========================
Waleed Seada



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