Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
juleshuxley

Center text in a RscText box

Recommended Posts

Why is the A left aligned?
whutt.jpg

class MyTextControl : RscText {
  type = CT_HTML;
  w = 0.06;
  h = 0.05;
  font = "TahomaB";
  sizeEx = 0.04;
  colorBackground[] = {0,0.9,0,1.0};
  text = "A";
  shadow = 0;
  align = "CENTER";
  style = ST_CENTER;
  valign = "top";
};

I've tried setting align and style but it appears to be left aligned. How do I change  it so the text is in the center of the box?


 

Share this post


Link to post
Share on other sites
Sign in to follow this  

×