Recent Posts

Pages: 1 ... 8 9 [10]
91
General Board / Re: Shape Scripts - addSubshape
« Last post by Modesto Vega on November 13, 2019, 10:23:40 pm »
Thanks KP, very useful.

qwerty - sorry I did not fully spotted your irony at the end of day fighting with Sparx shape scripts.

This does the best job. It still leaves an awful amount of white space at the bottom of the name compartment on (v13) which I attribute to the fact that  v_align = "center" does not really do a center vertical alignment.

I also do not understand why I need to specify preferredheight=200. It is the best value, insofar as it renders the best result, of 100, 50 & 30. But do not understand what 200 stands for.

Code: [Select]
shape main{

dockable="standard";
layouttype="border";

rectangle(0,0,100,100);

setfontcolor(0, 0, 0);
setfillcolor(255,255,255);

addSubshape("stereotypecompartment", "n");

addSubshape("namecompartment", "s");

shape stereotypecompartment
{

h_align = "right";
v_align = "top";

preferredheight=20;

moveto(0,100);
lineto(100,100);

println("#stereotype#");
}

shape namecompartment
{

h_align = "center";
v_align = "center";

preferredheight=200;

editablefield = "name";

printwrapped("#name#");

}
}
92
Automation Interface, Add-Ins and Tools / Re: MDG: Add new element by using Quicklinker
« Last post by Mesple on November 13, 2019, 08:58:36 pm »
ok, thanks for your quick response.
93
Hi all,
In my MDG, the element have been resize (width=100px, height=30px). If I add new elements by using the toolboox, the elements are correctly sizing :). But if I add new elements by Quicklinks, the size is not correct :(. I have to adjust it manually. Any idea?
Thanks!
This bug is many years old.  Report it again...

Paolo
94
Automation Interface, Add-Ins and Tools / MDG: Add new element by using Quicklinker
« Last post by Mesple on November 13, 2019, 08:15:09 pm »
Hi all,
In my MDG, the element have been resize (width=100px, height=30px). If I add new elements by using the toolboox, the elements are correctly sizing :). But if I add new elements by Quicklinks, the size is not correct :(. I have to adjust it manually. Any idea?
Thanks!
95
Automation Interface, Add-Ins and Tools / Re: MDG/Quicklink definition?
« Last post by Mesple on November 13, 2019, 08:07:40 pm »
Thanks a lot!
Olivier
96
General Board / Re: Shape Scripts - addSubshape
« Last post by qwerty on November 13, 2019, 11:20:56 am »
That's quite useful. I wasn't aware of that effect.

q.
97
Hello jepessen,

If you have any question about EA Connector for Redmine, please email to our support global@sparxsystems.jp .

HTH,
98
General Board / Re: Shape Scripts - addSubshape
« Last post by KP on November 13, 2019, 09:18:33 am »
You could try setting preferredHeight in your subshapes. Give it an absolute value. Something like:

Code: [Select]
shape main
{
layouttype="border";
rectangle(0,0,100,100);
addsubshape("name","N");

shape name
{
preferredheight=16;
moveto(0,100);
lineto(100,100);
print("#name#");
}
}
99
General Board / Re: unique stereotypes names in one profile?
« Last post by KP on November 13, 2019, 09:09:16 am »
Change it to:

Code: [Select]
<Stereotype name="Choice" notes="" cx="0" cy="0" bgcolor="16777164" fontcolor="0" bordercolor="0" borderwidth="1" hideicon="0">
<AppliesTo>
<Apply type="Attribute"/>
<Apply type="DataType"/>
</AppliesTo>
</Stereotype>
100
General Board / Re: Shape Scripts - addSubshape
« Last post by qwerty on November 13, 2019, 09:08:37 am »
Yeah. The sarcastic undertone in my reply might e a bit unrecognizable (though reading my other posts it should be obvious). The only thing that helps is to try and fail with EA. Currently I'm feeling like Don Quixote fighting against shape scripts in decorations. That gives me the creeps...

q.
Pages: 1 ... 8 9 [10]