Book a Demo

Author Topic: h_align of a label  (Read 3991 times)

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
h_align of a label
« on: February 19, 2015, 01:44:24 am »
Hi,

How can I align the text of a label to the left ?

shape label
{
setOrigin ("NE", 0,0);
h_align="LEFT";
println ("Some text");
}

h_align within a label block doesn't work. The issue I have is that I've already set h_align to center when I displayed the elements name.

Also it appears that i can only have one label per shapescript. Is this true. I want to display some text bottom left corner and top right corner of my element. I've tried two label blocks - first is ignored. I've tried setting the origin to SW, printing then setting it to NE and printing - all text is printed at NE (last call to setOrigin)...

Regards,

Jon.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: h_align of a label
« Reply #1 on: February 19, 2015, 02:41:08 am »
Those settings must appear at the very beginning of a shape script. Move it one line up. (Don't know if that solves the issue but it's mandatory)

q.