Aditya,

if you want to display strings in different languages, you should plan your elements to be wide enough. This is how OOo core does it, there is no dynamic width adjustment for anything in any language.

To XMessageBox: Most of things in AWT are deprecated, because AWT should be reworked completely. When you see error messages coming from OOo core, they are not using XMessageBox.
IMHO only the form controls use AWT, all other OOo code uses VCL directly.

Malte.

Aditya Pandey wrote:
I have two questions, and despite looking like they are independent, but are quite related.

Using com::sun::star::awt, services I can create a user interface through OO 2.0 SDK. Question is: that some how I am able to store all the "strings" in some .xcu file, when I display this string on the dialogs...the width of the widgets may not be appropriate.

Right now, I have set the widths according to english, but how do I determine the widths in a separate language/font setting?

Related to this, XMessageBox is deprecated, but I find that all the while, ErrorBox is being used inside OO code itself. So as I understand it, since all the code is using it, why is the interface that providers "errorbox" deprecated?

If I show my own error box made with awt, then for all the possible error messages, I have to hard-code widths knowing fully that this would not work in other languages.

Any pointers?
--
Aditya Kumar Pandey
----------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to