If you don't want your text to be truncated set the propertry 'truncateToFit' to false for the Button's textfield.
Thanks but how do you set that with the Alert control.... I was using the limited funciton "show" which doesn't have this parameter... at least i don't think so.
Why don't you use a simple popup window (instead of the Alert one) ? For a popup window you can set what properties do you want. Here is an example of using a popup : http://blog.flexexamples.com/2007/08/06/creating-custom-pop-up-windows-with-the-popupmanag er-class/ .
Hope it helps ! Sophie
I already did that but i still have some message boxes from the time when i started the developement on this project.
In fact i made a custom component that instantiates itself !
Not to mention that i just realized another problem with Flex's message bod feature.
My application is localized in French and English. I just did a test to see how the french gets displayed.
The text for the ok can cancel buttons is now "null" and "null" !!!!....
Do i have to translate those default buttons ?... How should i call them ? Why is such obvious things not properly documented !
There is a static property called buttonWidth.You can make use of it.If you want the button width to be large throught your application,you can set this in say,creationComplete of the application.Or else if you want it in certain places only set the buttonWidth just before you call Alert.show().And after that set it to the normal value of 60,like this:
private function showAlert():void
Alert.buttonWidth = 100;
Alert.show('Button is big');
Alert.buttonWidth = 60;
Alert.show('Button width back to normal');