Hi Thibault,

Thanks for your answer,

Yes I configured the minima and maxima of my node in the 
diagramconfigurator.
The configuration that I set was:

DefaultWidth : 150
DefaultHeight : 100
MinimumWidth : 20
MinimumHeight : 20
MaximumWidth : 200
MaximumHeight : 200

LineWidth : 1
LineStyle : SOLID

And the Resizing was set to ALL

With these parameters, technically there cannot be a problem to get a 150 
by 100 rectangle while I just click on the diagram to generate the default 
sized shape. But what I get is always a 100 by 100 square box, no matter 
the DefaultWidth or DefaultHeight are. And I verified the graphconf, in 
case it was not overwritten, but it is, 
I can retrieve my 150 by 100 parameters for the shape.

so I do not get it. Where are these 100 by 100 parameters coming from ?

Clement Debret






[email protected] 
Envoyé par : [email protected]
02/04/2009 11:33
Veuillez répondre à
[email protected]


A
[email protected]
cc

Objet
Re: [Topcased-users] Cannot modifiy the default size of an item






Hi Clément,

on your diagramconfigurator, have you well defined the minimal 
size/height, default size/height and maximum size/height of your node ?
You should have something like this :

Minimum Height           -1
Minimum Width            -1

Default Height           40
Default Width            130

Maximum Height           0
Maximum Width            0


Also have you in the tab Policies of your node in the 
diagramconfigurator set the resizing to the value "ALL" ?

You can find more informations here on how to configure your 
diagramconfigurator : 
http://topcased-mm.gforge.enseeiht.fr/website/modeling/tutorials/generateEditor.html



Best Regards,

Thibault

[email protected] a écrit :
> 
> Hi everyone,
> 
> I am a little bit disappointed, I cannot succeed in changing the default 

> size of my items in a diagram, while adding them.
> 
> I am developping a plugin with separate projects. i created the 
> editorconfigurator and a first diagramconfigurator, with only a single 
> item for tests purpose.
> 
> I managed to generate the new plug in, and created a new diagram to test 

> it. Everything worked well, except from the default size of the shapes, 
> which was 100x100.
> 
> So I tried to change some parameters to test them : background color, 
> foreground color, font, line width... and size (both width and height) 
> to change this not-so-beautiful square shaped box, and give them a more 
> rectangular look.
> 
> I regenerated the plug in, and while testing it again, I were surprised 
> not to get the resized parameters working. The background/foreground 
> color and font were different, but neither the size nor the line width 
> changed.
> 
> I verified the .graphconf file, and the values are correctly written.
> I noticed that there is a preferences package that configure the default 

> Background / foreground / font values, but nothing for the size.
> In an old project, I was able to change the size directly from the 
> .graphconf file (even it is not recommended), but as i tried to modify 
> directly the .graphconf values of my new project, nothing changed.
> 
> I maybe get something wrong, like a function that refreshs with default 
> values, but I did not see any of these things, and with quite the same 
> code, the old project allows to change the size. there is maybe some 
> code that I missed.
> 
> 
> Sincerely,
> 
> Clement Debret
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Topcased-users mailing list
> [email protected]
> http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

Attachment: thibault.landre.vcf
Description: Binary data

_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

Reply via email to