sizing shapes when creating from palette [message #187737] |
Mon, 19 May 2008 13:42 |
Eclipse User |
|
|
|
Originally posted by: nico.lammers.gmail.com
Hi,
By default you can create the initial size of a shape when you select a
tool and then drag the size rectangle etc.
Is there any way to disallow this? I want my shapes to have a fixed
size. I already restricted the size after creation, but this is not
enough in my case.
Regards,
Nico Lammers
|
|
|
Re: sizing shapes when creating from palette [message #187827 is a reply to message #187737] |
Tue, 20 May 2008 07:12 |
Eclipse User |
|
|
|
Originally posted by: nico.lammers.gmail.com
anyone?
Nico Lammers wrote:
> Hi,
>
> By default you can create the initial size of a shape when you select a
> tool and then drag the size rectangle etc.
>
> Is there any way to disallow this? I want my shapes to have a fixed
> size. I already restricted the size after creation, but this is not
> enough in my case.
>
> Regards,
>
> Nico Lammers
|
|
|
Re: sizing shapes when creating from palette [message #187950 is a reply to message #187827] |
Tue, 20 May 2008 13:21 |
Eclipse User |
|
|
|
Originally posted by: nico.lammers.gmail.com
Solved by overriding ShapeEditPart#refreshBounds and setting the (in my
case constrained) size there
(actually I copied the original ShapeEditPart#refreshBounds and changed
the code I needed to change without calling refreshBounds in the superclass)
~ Nico
Nico Lammers wrote:
>
> anyone?
>
> Nico Lammers wrote:
>> Hi,
>>
>> By default you can create the initial size of a shape when you select
>> a tool and then drag the size rectangle etc.
>>
>> Is there any way to disallow this? I want my shapes to have a fixed
>> size. I already restricted the size after creation, but this is not
>> enough in my case.
>>
>> Regards,
>>
>> Nico Lammers
|
|
|
Powered by
FUDForum. Page generated in 0.02479 seconds