Question
We have to insert the possibility to change language settings. Is it possible to set the language in order to change the date format?
Example: Regional settings of my PC are italian but I want dates in phGanttControl.ocx to be in English and I want to view the days of the week like this: “Sun”, “Mon”, “Thu”, ecc..
Alternatively, is it possibile to hide the days of the week when I’m zooming the control?
Answer
The settings is read from windows-locales at startup, the setting is read again as a responce to the WM_WININICHANGE message.
To change the locales settings in windows (got this from msdn):
setlocale( LC_ALL, “French_Canada.1252” );
// Set code page to French Canada ANSI default
setlocale( LC_ALL, “French_Canada.ACP” );
// Set code page to French Canada OEM default
setlocale( LC_ALL, “French_Canada.OCP” );
This is untested and we are not entirily sure that it will work. Maybe we will need to expose a method in the API to let you send in the desired culture-lcid.
You may also implement the IphGantX3.OnScalerStringShort and IphGantX3.OnScalerStringLong events and override the outputted text.