I was wondering is it possible for me to put in a text of my own in place of the default text (the text that shows which values can be given to a field) which appears in the answer info part of the infopane. If it is possible how do I do it?
As far as I know you cannot replace the default text in the Answer Info.
However, you could incorporate this kind of information within the question text itself by adding a blank line after the main text then adding Info text using a highlight that differentiates it from the question.
Age_of_person "What is your age? @/@/@eRecord age in whole years, zero if under one@e" / "Age" : 0..120
A blank line is inserted using @/@/.
The @e highlight symbol in my mode library is used for explanatory text and I use slightly smaller font with colour blue.
The only difference between this and the Answer info is that it appears before the categories but you can train your interviewers to handle that.
You can change the texts in the Blaise language file. The file can be found in the bin\translate folder. The name is blaise_eng.lng. Copy the file to the bin folder (or to the folder in which dep.exe is located) using the name blaise.lng. In that file you can change the system defaults described below (they all start with mg and are located in the section [DEP]). Note that you can use %d or %s in the text. %d will be replaced by a number and %s by a string. For the individual types you can change the following variables:
For a [u]STRING[/u]: mgAnswerStringInfo. You can use %d in the text. It will be replace by the allowed maximum number of characters that you can enter.
For an [u]INTEGER, integer range[/u]: when the field size is 10 or more: mgAnswerNumberInfo. %d = field size. For smaller integers: mgAnswerRangeInfo. You can use %s two times: First %s is replaced with the lower allowed value, the second %s with the upper allowed value.
For a [u]REAL, real range[/u]: when the field size is 10 or more: mgAnswerRealNumberInfo. First %d = field size, second %d: number of decimals. For smaller reals: mgAnswerRangeInfo. You can use %s two times: First %s is replaced with the lower allowed value, the second %s with the upper allowed value
For a [u]DATETYPE[/u]: mgAnswerDateInfo
For a [u]TIMETYPE[/u]: mgAnswerTimeInfo
For an [u]OPEN[/u]: mgAnswerOpenInfo
For an [u]enumeration[/u]: by default no text is displayed so nothing that you can change here
For a [u]SET[/u]: mgAnswerSetInfo. You can use %d. It will be replaced by the maximum number of allowed choices
For a [u]CLASSIFICATION[/u]: mgAnswerClassificationInfo
You can specify a new answer info text for a specific type under datamodel properties in the Blaise Control Centre (Project | Datamodel Properties). Select the type (a system type or a user defined type), press the button Answer Info… and in the dialog that appears check Use Custom Text and specify the text you want to use. For the different types you can use the same %d or %s as described above for the basic type that corresponds with the type you have selected (note that for a real and integer you are only allowed to use %s two times).
Hope this helps.
Thanks for all the help, much appreciated.
Thanks Batman. I can't wait to try that solution out.
Thank you Batman for this information.. all this time I though most the default messages from the DEP in this case the Infopane - Answer Info could not be changed.
My question :
Can I drop the file Blaise_Eng.lng where the manipula.exe is? we are not using the DEP for launching our instruments.
How do I handle for bilingual mode?
Yes, you can but only when you rename it to blaise.lng.
In the Blaise help under Miscellaneous' there is topic on translating Blaise. It gives information on where the .lng file can be located. Manipula and DEP even have the command-line parameter /# that can be used.
Bilingual mode. If your question is about switching the Blaise system language run-time: as far as I know there is no solution. When you know the preferred system language in advance you can consider using the /# command-line parameter.
I hope this answers your questions.
Thank you, I will keep in mind your recomendation, and as fas as not been able to have it as runtime, we can live with it.
and this bring another question:
Since we are ,migrating to a higher resolution screen, we were able to cover most of the settings properly ( that is increase the fonts proporcionally) but the buttons and text on signal, checks , lookups are retaining the system default font.
Any ideas how to increase them?