LimeReport Forum
General Category | Основное => Discussion | Обсуждение => Topic started by: seetharaman on July 19, 2016, 03:04:39 pm
-
how to change width in textitem ?
Example
THIS.width=40;
-
may be by using script engine?
it's like the ecma-262, i.e. JS & so
http://www.ecma-international.org/ecma-262/7.0/
-
I've added method setItemWidth and setItemHeight to TextItem.
You can use like this $S{THIS.setItemWidth(40)}
I can't add it as a property for some reason
-
thank you very much
-
Its Return Some error message.
and attached my file
TypeError:Result of expression 'THIS.setItemWidth' [undefined] is not a function
[вложение удалено администратором]
-
Did you get the latest source from github ? I added this function after your message.
-
it's work properly .
is designer open sourced? if so, where to find source code?
-
I've pushed it to githib.
-
thank you very much
-
Feature request: Simalarly, functions needed for setting x & y positions of an Item..
Alternatively, we can make QRectF new-able from script (similar to QColor, so that a QRectF can be assigned to Geometry property)
-
I added next functions to Item :
Q_INVOKABLE qreal getItemWidth();
Q_INVOKABLE qreal getItemHeight();
Q_INVOKABLE qreal getItemPosX();
Q_INVOKABLE qreal getItemPosY();
Q_INVOKABLE QString setItemPosX(qreal xValue);
Q_INVOKABLE QString setItemPosY(qreal yValue);