It is currently Thu Mar 28, 2024 9:29 pm



Post new topic Reply to topic  [ 1 post ] 
Author Message
Member
 

Team: Dark Traders
Main: Aredes
Level: 2142
Class: Shield Monkey

Joined: Tue Apr 27, 2010 5:15 pm
Post 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. :(


You do not have the required permissions to view the files attached to this post.


Thu Mar 10, 2011 3:03 am
Profile E-mail
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © phpBB Group.