ivan.cuevas Posted March 28, 2012 Share Posted March 28, 2012 Hi all, I want to set a button text in a centered paragraph multiple. The code is as follows: <?xml version="1.0" encoding="utf-8"?> <ui version="1.0"> <window name="window" export="1" space="4" sizeable="1" width="512"> <text>mimicGui</text> <hbox space="3"> <button> <text align="center">DESCARGA BAT. EN EL MAR SIN AIP</text> </button> <button> <text align="center">DESCARGA BAT. EN LA MAR CON AIP</text> </button> <button> <text align="center">CARGA BAT. CON DAR'S (PUERTO O MAR)</text> </button> <button> <text align="center">DESCARGA BAT. EN PUERTO SIN AIP</text> </button> <button> <text align="center">CARGA BAT. EN PUERTO SIN DAR'S</text> </button> </hbox> </window> </ui> The result, as you can see in the image it's a centered text, but not a centered paragraph: What I'm doing wrong? Regards, Iván. Link to comment
carl.sutton Posted March 28, 2012 Share Posted March 28, 2012 Try something like this, I assume it will work although I havn't tried myself <button> <text rich="1"> <center>DESCARGA BAT.EN EL MAR SIN AIP</center> </text> </buuton> Link to comment
ivan.cuevas Posted March 28, 2012 Author Share Posted March 28, 2012 With a little change... <button> <text rich="1"> <center>DESCARGA BAT.</center> <center>EN LA MAR CON AIP</center> </text> </button> It works! Thank you Carl. Link to comment
Recommended Posts