1. PRASHANT NIRGUN
  2. PowerBuilder
  3. Monday, 25 March 2019 14:43 PM UTC

HI

This is Prashant here, I am using PB 12.5.2 and Windows 64. I setup 2 input Languages 

1 English (United States), Keyboard = US

2 Marathi (India), Keyboard = Micrsoft Indic Language Tool

I toogle the language Input Using Left Alt + Shift. Before Running My application I select Marathi as Input language but I am facing problem it automatically goes to English. I notice Whenever I encounter input fields like Picturebutton, Dropdown list box, sle it gets change to English. I used Mukta Which is Unicode font

Datawindow does support but when it comes to windows Control

type ddlb_list from dropdownlistbox within criteria
boolean visible = false
integer x = 1074
integer y = 36
integer width = 1102
integer height = 716
integer taborder = 50
integer textsize = -10
integer weight = 400
fontcharset fontcharset = ansi!
fontpitch fontpitch = variable!
fontfamily fontfamily = swiss!
string facename = "Mukta"
long textcolor = 33554432
boolean sorted = false
boolean vscrollbar = true
borderstyle borderstyle = stylelowered!
end type

Which charset I need to use, My Database Drive is MySQL ODBC 5.3 UNICODE Driver Data can be seen in Unicode not a probelm but in controls it get automatically changed to English Language.

I create a window with only one ddlb set the proper font and before opening the window i changed language to Marathi Movement it open window it automatically changed to English.

PRASHANT NIRGUN Accepted Answer Pending Moderation
  1. Thursday, 28 March 2019 05:38 AM UTC
  2. PowerBuilder
  3. # 1

Thanks Olan it works I found another links where same code but littlebit of formating https://manios.org/2012/08/07/powerbuilder-10-get-and-change-system-language

Here is constatnt code Marathi Language

Constant long LANG_MARATHI = 72221774

 

Issue is resolved and I am satisfied 5 star rating 

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 27 March 2019 14:14 PM UTC
  2. PowerBuilder
  3. # 2
Comment
There are no comments made yet.
PRASHANT NIRGUN Accepted Answer Pending Moderation
  1. Wednesday, 27 March 2019 05:08 AM UTC
  2. PowerBuilder
  3. # 3
Thanks for the prompt repy. But I am talking about window controls and not the dwo. Things didn't work I test it.

//Open event of test_w
IB_USE_ENGLISH = false
IF ib_use_english THEN
ELSE
ddlb_1.facename = "Mukta"
Messagebox("s","Muka set")
End If

Is there any way out to enabled unicode support for powerbuilder ?
Comment
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Monday, 25 March 2019 21:24 PM UTC
  2. PowerBuilder
  3. # 4

This switch is most likely occurring because of the dynamic nature of how the langunage is specified.

 

Try creating an instance variable for the window IB_USE_ENGLISH, set it to FALSE.

In the constructor or open event of each object, check this flag. If TRUE then call a function that sets the required fields to us English. If FALSE, call that function to set the required fields to Mukta.

You can also set the various EXPRESSIONs in the object themselves rather than doing this in code.

Test this on a simple DWO.

 

Olan

 

Comment
  1. PRASHANT NIRGUN
  2. Tuesday, 26 March 2019 04:40 AM UTC
Thanks for the prompt repy. But I am talking about window controls and not the dwo. Things didn't work I test it.

//Open event of test_w

IB_USE_ENGLISH = false

IF ib_use_english THEN

ELSE

ddlb_1.facename = "Mukta"

Messagebox("s","Muka set")

End If
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.