Star Sonata http://forum.starsonata.com/ |
|
customStaticText and staticText http://forum.starsonata.com/viewtopic.php?f=91&t=43915 |
Page 1 of 1 |
Author: | Deathdisguise [ Thu Mar 10, 2011 3:03 am ] |
Post subject: | customStaticText and staticText |
Incorrectly wraps the text in the box. There is no current (known) fix for it client side as there's no attribute to control the scroll bar width. The proper (and general) way to calculate the width is as follows: Code: FUNC wrap_width(INT width, BOOL autoScroll) IF autoScroll RETURN width - X; //X is the length of the scroll bar. ELSE RETURN width; ENDFUNC Or alternatively, add a subset rect attribute for the scrollbar itself. PS: I wanted to do something non-XML, even if it was just pseudocode. |
Page 1 of 1 | All times are UTC - 5 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |